| Recommend this page to a friend! |
| Info | Documentation | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 174 | All time: 8,789 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 *");
}
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Doc. | Documentation | |||
| / | src | / | php-floodprotection | / | frdl | / | security |
| File | Role | Description | ||
|---|---|---|---|---|
| / | src | / | php-floodprotection | / | frdl | / | security | / | floodprotection |
| File | Role | Description |
|---|---|---|
| |
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. |
| 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.