Commit b7b07778 by Joneq

答应header变量

parent e7a6c0a3
Showing with 3 additions and 2 deletions
......@@ -57,8 +57,9 @@ 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.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