|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2019-11-05 (15 days ago) ||Not yet rated by the users||Total: 117 This week: 7||All time: 9,092 This week: 44|
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.