These rules are intentionally simple so the project stays easy to read and modify while learning Java.
Flags request paths containing ../ or encoded %2e%2e segments.
Example:
GET /../../etc/passwd HTTP/1.1
Flags PHP paths that mention upload, cmd, or shell.
Example:
GET /uploads/cmd.php HTTP/1.1
Flags request paths containing /admin or /login.
Example:
GET /admin/login.php HTTP/1.1
Flags common WordPress endpoints such as wp-login.php, xmlrpc.php, and
/wp-admin.
Counts 4xx responses by source IP. This is not a detection by itself, but it
helps spot clients that are repeatedly probing missing, blocked, or invalid
paths during a small lab review.
Counts 5xx responses by source IP. This can point to clients triggering
backend errors or to routes that need reliability review during a lab incident
walkthrough.