开发者

how to implement an IP blocking script

i want to know the user how many times enter in my website and also from the same ip address

using php.

i would like to prevent the site from user who continuously hit my site with in 2 seconds or 1 seconds.

if continuously any user hit my site i would like to avoid that user ip address.

tha开发者_开发技巧nks in advance


I would create a script which writes this information into a database, and I'd probably also include the PHP Session so you can differentiate between hits and visits.

Have a look at the PHP global reserved variables. http://www.php.net/manual/en/reserved.variables.server.php

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜