frdl / php-floodprotection
Simple IP Flood Protection
Fund package maintenance!
wehowski
webfan.de/sponsor-me
domainundhomepagespeicher.de
Requires
- php: >=7.2
This package is auto-updated.
Last update: 2024-11-25 13:01:41 UTC
README
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 *"); }
Bug notice:
Please note this bug!