mirror of
https://github.com/fabriziosalmi/patterns.git
synced 2025-12-29 16:15:12 +00:00
Update: [Sat Jan 25 00:24:31 UTC 2025]
This commit is contained in:
@@ -4,19 +4,19 @@
|
||||
|
||||
map $request_uri $waf_block_attack {
|
||||
default 0;
|
||||
"~*@gt 1" 1;
|
||||
"~*[rn]W*?(?:content-(?:type|length)|set-cookie|location):s*w" 1;
|
||||
"~*@gt 0" 1;
|
||||
"~*(?:get|post|head|options|connect|put|delete|trace|track|patch|propfind|propatch|mkcol|copy|move|lock|unlock)s+[^s]+s+http/d" 1;
|
||||
"~*unix:[^|]*|" 1;
|
||||
"~*[nr]+(?:s|location|refresh|(?:set-)?cookie|(?:x-)?(?:forwarded-(?:for|host|server)|host|via|remote-ip|remote-addr|originating-IP))s*:" 1;
|
||||
"~*(?:bhttp/d|<(?:html|meta)b)" 1;
|
||||
"~*[nr]" 1;
|
||||
"~*." 1;
|
||||
"~*content-transfer-encoding:(.*)" 1;
|
||||
"~*unix:[^|]*|" 1;
|
||||
"~*^[^sv,;]+[sv,;].*?(?:application/(?:.++)?json|(?:application/(?:soap+)?|text/)xml)" 1;
|
||||
"~*TX:paramcounter_(.*)" 1;
|
||||
"~*^content-types*:s*(.*)$" 1;
|
||||
"~*^[^sv,;]+[sv,;].*?(?:application/(?:.++)?json|(?:application/(?:soap+)?|text/)xml)" 1;
|
||||
"~*content-transfer-encoding:(.*)" 1;
|
||||
"~*@gt 1" 1;
|
||||
"~*(?:get|post|head|options|connect|put|delete|trace|track|patch|propfind|propatch|mkcol|copy|move|lock|unlock)s+[^s]+s+http/d" 1;
|
||||
"~*[nr]+(?:s|location|refresh|(?:set-)?cookie|(?:x-)?(?:forwarded-(?:for|host|server)|host|via|remote-ip|remote-addr|originating-IP))s*:" 1;
|
||||
"~*[nr]" 1;
|
||||
"~*[rn]W*?(?:content-(?:type|length)|set-cookie|location):s*w" 1;
|
||||
"~*@gt 0" 1;
|
||||
"~*(?:bhttp/d|<(?:html|meta)b)" 1;
|
||||
"~*^[^sv,;]+[sv,;].*?b(?:((?:tex|multipar)t|application)|((?:audi|vide)o|image|cs[sv]|(?:vn|relate)d|p(?:df|lain)|json|(?:soa|cs)p|x(?:ml|-www-form-urlencoded)|form-data|x-amf|(?:octe|repor)t|stream)|([+/]))b" 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user