I found this script online, but I am not sure if its protection is based on a user's IP address, or is it? Will it stop a user based on how many requests are made from the same IP?
Code:<?PHP IF (!ISSET($_SESSION)) { SESSION_START(); } // anti flood protection IF($_SESSION['last_session_request'] > TIME() - 2){ // users will be redirected to this page if it makes requests faster than 2 seconds HEADER("location: /flood.html"); EXIT; } $_SESSION['last_session_request'] = TIME(); ?>



Reply With Quote


Bookmarks