Update waf.lua
parent
80075d3a94
commit
9a8a80555e
2
waf.lua
2
waf.lua
|
@ -86,7 +86,7 @@ get=read_rule('get')
|
||||||
post=read_rule('post')
|
post=read_rule('post')
|
||||||
agent=read_rule('user-agent')
|
agent=read_rule('user-agent')
|
||||||
whitelist=read_rule('whitelist')
|
whitelist=read_rule('whitelist')
|
||||||
if ngx.re.match(ngx.var.request_uri,whitelist,"i") then
|
if ngx.re.match(ngx.var.request_uri,whitelist,"isjo") then
|
||||||
return
|
return
|
||||||
elseif ngx.req.get_body_data() 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_body_data() and ngx.re.match(ngx.req.get_body_data(),[[^(?!Content-Disposition: form-data;(.*)filename="(.*).(php|jsp|phtml|asp|aspx|cgi)").*$]],"isjo") then
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue