The same computer, how to limit his only 5 times in a minute to access a dynamic page of a domain name. More than five times, jump to the specified static page.
Reply to discussion (solution)
What is the point of doing this? Reduce server pressure?
What is the point of doing this? Reduce server pressure?
An IP is considered a computer, in the background to do a pool of visits, timed to clear every minute, access to a corresponding IP plus a
IP No, you can use cookies
IP No, you can use cookies
Find Case Code ...
I thought of using cookie restrictions, but I don't know how to write it reasonably efficient.
Just use JS to manipulate cookies.
5) {echo "It ' s Max"; exit;} $visitCount ++;logvisitcount ($visitCount, "{$filePath} {$uuid}.txt");} echo "visit count: {$visitCount}", Function Logvisitcount ($STR, $file) {$handle = fopen ($file, ' W '); fwrite ($handle, $STR) ; fclose ($handle);}
Simply write it, you change it.