Commit 55fa8eff by Joneq

修改代码

parent f6759c01
Showing with 0 additions and 2 deletions
...@@ -92,9 +92,7 @@ end ...@@ -92,9 +92,7 @@ end
ngx.say(user_ip) ngx.say(user_ip)
ngx.say(wafcheck.BlackIp(user_ip)) ngx.say(wafcheck.BlackIp(user_ip))
red:close()
ngx.exit(ngx.HTTP_FORBIDDEN) ngx.exit(ngx.HTTP_FORBIDDEN)
ngx.say(1)
-- 黑名单存在直接302 -- 黑名单存在直接302
if wafcheck.BlackIp(user_ip) == 'exist' or wafcheck.BlackUrl(temp_uri) == 'exist' or wafcheck.BlackHeader(u_agent) == 'exist' then if wafcheck.BlackIp(user_ip) == 'exist' or wafcheck.BlackUrl(temp_uri) == 'exist' or wafcheck.BlackHeader(u_agent) == 'exist' then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment