English
php
security
rate-limiting
brute-force
ddos
framework
shinobi-apps-framework
Rate limiting in PHP: two-lane defense against DDoS and brute force
One rate limiter, two lanes per protected route. Lane 1 counts every POST per IP (anti-DDoS, high threshold). Lane 2 counts only failed auth attempts per email (anti-brute-force, 5 tries). Sliding window with weighted previous window. BORNA enrichment via events.