|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not enough user ratings||Total: 166 ||All time: 8,834 This week: 333|
This class can be used to prevent abusive accesses from the same IP address.
It can keep track of the accesses to a certain resource controlled by the current PHP Web script to limit the number of access attempts to a given reasonable number.
The class records in a file of the last accesses for a given period of time to assure that the number of accesses does not exceed the specified limit.
Simple IP Flood Protection
Code from https://stackoverflow.com/questions/3026640/quick-and-easy-flood-protection as Class.
$FloodProtection = new FloodProtection('login', 10, 30);
header("HTTP/1.1 429 Too Many Requests");
exit("Hit some *");
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.