patterns/waf_patterns/nginx/leakages.conf

18 lines
464 B
Plaintext
Raw Normal View History

# Nginx WAF rules for LEAKAGES
2025-01-16 13:49:54 +01:00
# Automatically generated from OWASP rules.
# Include this file in your server or location block.
2025-01-16 13:49:54 +01:00
map $request_uri $waf_block_leakages {
default 0;
"~*^#!s?/" 1;
"~*(?:<(?:TITLE>Index of.*?<H|title>Index of.*?<h)1>Index of|>[To Parent Directory]</[Aa]><br>)" 1;
"~*^5d{2}$" 1;
}
2025-01-16 13:49:54 +01:00
if ($waf_block_leakages) {
return 403;
# Log the blocked request (optional)
# access_log /var/log/nginx/waf_blocked.log;
}
2025-01-16 13:49:54 +01:00