Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 174 | All time: 8,788 This week: 47 |
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 (3) |
File | Role | Description | ||
---|---|---|---|---|
src (1 directory) | ||||
composer.json | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files (3) | / | src | / | php-floodprotection | / | frdl | / | security |
File | Role | Description | ||
---|---|---|---|---|
floodprotection (1 file) |
Files (3) | / | src | / | php-floodprotection | / | frdl | / | security | / | floodprotection |
File | Role | Description |
---|---|---|
FloodProtection.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
php-floodprotection-2019-11-05.zip 2KB | |
php-floodprotection-2019-11-05.tar.gz 1KB | |
Install with Composer |
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.