Update waf.lua
parent
dcfb9a35aa
commit
5112d1033a
9
waf.lua
9
waf.lua
|
@ -6,12 +6,15 @@ else
|
||||||
if ngx.re.match(string.gsub(ngx.unescape_uri(ngx.var.request_uri),"\\%",""),regex.."|"..get,"isjo") then
|
if ngx.re.match(string.gsub(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))
|
||||||
check()
|
check()
|
||||||
elseif ngx.re.match(ngx.re.gsub(ngx.var.request_uri,"\\%",""),regex.."|"..get,"isjo") then
|
-- elseif ngx.re.match(ngx.re.gsub(ngx.var.request_uri,"\\%",""),regex.."|"..get,"isjo") then
|
||||||
log('GET',ngx.unescape_uri(ngx.var.request_uri))
|
-- log('GET',ngx.var.request_uri)
|
||||||
check()
|
-- check()
|
||||||
elseif ngx.req.get_body_data() and ngx.re.match(string.gsub(ngx.unescape_uri(ngx.req.get_body_data()),"\\%",""),regex,"isjo")then
|
elseif ngx.req.get_body_data() and ngx.re.match(string.gsub(ngx.unescape_uri(ngx.req.get_body_data()),"\\%",""),regex,"isjo")then
|
||||||
log('POST',ngx.unescape_uri(ngx.var.request_uri),ngx.unescape_uri(ngx.req.get_body_data()))
|
log('POST',ngx.unescape_uri(ngx.var.request_uri),ngx.unescape_uri(ngx.req.get_body_data()))
|
||||||
check()
|
check()
|
||||||
|
-- elseif ngx.req.get_body_data() and ngx.re.match(string.gsub(ngx.req.get_body_data(),"\\%",""),regex,"isjo")then
|
||||||
|
-- log('POST',ngx.unescape_uri(ngx.var.request_uri),ngx.unescape_uri(ngx.req.get_body_data()))
|
||||||
|
-- check()
|
||||||
-- elseif ngx.req.get_headers()["Cookie"] and ngx.re.match(ngx.unescape_uri(ngx.req.get_headers()["Cookie"]),regex,"isjo")then
|
-- elseif ngx.req.get_headers()["Cookie"] and ngx.re.match(ngx.unescape_uri(ngx.req.get_headers()["Cookie"]),regex,"isjo")then
|
||||||
-- log('COOKIE',ngx.unescape_uri(ngx.var.request_uri),ngx.unescape_uri(ngx.req.get_headers()["Cookie"]))
|
-- log('COOKIE',ngx.unescape_uri(ngx.var.request_uri),ngx.unescape_uri(ngx.req.get_headers()["Cookie"]))
|
||||||
-- check()
|
-- check()
|
||||||
|
|
Loading…
Reference in New Issue