单次登录后阻止IP地址 [英] Block an IP Address after a Single login

查看:199
本文介绍了单次登录后阻止IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生/女士





我在在线教师评估系统工作。

现在我想要在登录时找到该系统的IP地址,然后当学生在第二次填写反馈表后注销该应用程序时,无法完成登录。







简而言之,我想在特定系统上进行一次登录。

我该怎么办呢

请帮我解决这个问题

解决方案

这是一个坏主意 - IP地址并非特定设备所独有,而是特定于单个设备连接点(例如ADSL路由器)。如果有4个人使用相同的路由器,他们将拥有相同的IP地址,禁令将影响所有人,而不仅仅是一个。为了解决您的问题,IP地址通常由ISP分配,并且可以很容易地更改或欺骗。



相反,请查看让人们登录在某种程度上,或使用cookie来防止多次反馈 - 它并不完美,但它几乎是你能做的最好的。


100%同意OriginalGriff。



基于登录ID的解决方案应该是完美的。

在Login表中有一个boolean列。完成反馈后,请禁用登录。

这将保存所有令人头疼的问题。

如果您没有DB,请考虑加密的flat / XML文件。这也应该可以胜任。



希望有所帮助

Milind


Sir/Madam


I am working in the online faculty appraisal system.
Now I want that at login the ip address of that system i find and then when a student logout the application after fill the feed back form second time login can''t be done.



In short i want to make one time login at a particular system .
how can i do it
Please Help me regarding this

解决方案

This is a bad idea - IP addresses are not unique to a specific piece of equipment, instead they are specific to a single point of connection to the internet (an ADSL router for example). If there are 4 people using the same router, they will all have the same IP address, and a ban will affect all of them, not just one. To add to your problems, the IP address is normally allocated by the ISP, and can be changed or spoofed pretty easily.

Instead, look at either making people log in in some way, or use cookies to prevent multiple feed back - it''s not perfect, but it is pretty much the best you can do.


100% agree with OriginalGriff.

Login id based solution should be perfect.
Have a "boolean" column in Login table. Once you finish with the feedback, disable the login.
This will save all the headaches.
If you do not have DB, consider a encrypted flat/XML file. That should also do the job.

Hope that helps
Milind


这篇关于单次登录后阻止IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆