Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (3) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 159 | All time: 8,856 This week: 196 |
Version | License | PHP version | Categories | |||
php-floodprotection 1.0.0 | MIT/X Consortium ... | 5.3 | Networking, PHP 5, Security |
Description | Author | |
This class can be used to prevent abusive accesses from the same IP address. |
Simple IP Flood Protection
Code from https://stackoverflow.com/questions/3026640/quick-and-easy-flood-protection as Class.
use frdl\security\floodprotection\FloodProtection;
$FloodProtection = new FloodProtection('login', 10, 30);
if($FloodProtection->check($_SERVER['REMOTE_ADDR'])){
header("HTTP/1.1 429 Too Many Requests");
exit("Hit some *");
}
Files |
File | Role | Description | ||
---|---|---|---|---|
src (1 directory) | ||||
composer.json | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | src | / | php-floodprotection | / | frdl | / | security | / | floodprotection |
File | Role | Description |
---|---|---|
FloodProtection.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.