开发者

how to implement an IP blocking script

开发者 https://www.devze.com 2023-01-05 03:10 出处:网络
i want to know the user how many times enter in my website and also from the same ip address using php.

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

精彩评论

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