Commit c98eab8e by Joneq

答应header变量

parent 7682bf10
Showing with 2 additions and 2 deletions
......@@ -57,8 +57,8 @@ if config.redis_auth ~= "" and ok then
end
end
ngx.say(ngx.req.get_headers()['referer'],err)
ngx.say(red:sismember('waf_urldesc_limit', ngx.req.get_headers()['referer']) == 0,err)
ngx.say(ngx.req.get_headers()['referer'])
ngx.say(red:sismember('waf_urldesc_limit', ngx.req.get_headers()['referer']) == 0)
ngx.exit(ngx.HTTP_FORBIDDEN)
......
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