Commit a4bc142a by Joneq

修改代码

parent 1dedc0e4
Showing with 2 additions and 7 deletions
...@@ -74,13 +74,8 @@ end ...@@ -74,13 +74,8 @@ end
user_ip = reqhandle.GetRealIp() user_ip = reqhandle.GetRealIp()
is_exist ,err = red:sismember('ichunt_waf_black_ip', user_ip)
red:close()
ngx.say(user_ip)
ngx.say(is_exist)
ngx.say(err)
ngx.exit(ngx.HTTP_FORBIDDEN)
return
-- 获取请求头 -- 获取请求头
u_agent = ngx.req.get_headers().user_agent u_agent = ngx.req.get_headers().user_agent
......
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