php-admin/tests/Feature/Menu
Snider cecf4a9f7b test(honeypot): add comprehensive tests for teapot/honeypot anti-spam system
Add tests for the honeypot detection system that catches bots ignoring robots.txt:
- Bot detection patterns (SEO bots, AI crawlers, scripting tools, headless browsers)
- Severity classification (warning vs critical paths)
- TeapotController response (418 status, custom headers, hit logging)
- Rate limiting to prevent log flooding
- Header sanitization (removes sensitive headers before storage)
- Model scopes (recent, fromIp, bots, critical, warning)
- Statistics for dashboard (total, today, unique IPs, top bots)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 19:14:45 +00:00
..
AdminMenuSystemTest.php test(honeypot): add comprehensive tests for teapot/honeypot anti-spam system 2026-01-29 19:14:45 +00:00