Update waf.lua
parent
fa8cfcb981
commit
68faf80a4c
5
waf.lua
5
waf.lua
|
@ -1,7 +1,8 @@
|
||||||
if ngx.re.match(ngx.var.request_uri,whitelist,"isjo") then
|
if ngx.re.match(ngx.var.request_uri,whitelist,"isjo") then
|
||||||
return
|
return
|
||||||
elseif ngx.req.get_method()=='POST' and ngx.re.match(ngx.req.get_body_data(),[[^(?!Content-Disposition: form-data;(.*)filename="(.*).(php|jsp|phtml|asp|aspx|cgi)").*$]],"isjo") then
|
--elseif ngx.req.get_method()=='POST' and ngx.re.match(ngx.req.get_body_data(),[[^(?!Content-Disposition: form-data;(.*)filename="(.*).(php|jsp|phtml|asp|aspx|cgi)").*$]],"isjo") then
|
||||||
return
|
-- return
|
||||||
|
--明天中午修改下这里
|
||||||
else
|
else
|
||||||
if ngx.re.match(ngx.unescape_uri(ngx.var.request_uri),regex.."|"..get,"isjo") then
|
if ngx.re.match(ngx.unescape_uri(ngx.var.request_uri),regex.."|"..get,"isjo") then
|
||||||
log('GET',ngx.unescape_uri(ngx.var.request_uri))
|
log('GET',ngx.unescape_uri(ngx.var.request_uri))
|
||||||
|
|
Loading…
Reference in New Issue