Commit ab03e054 by Joneq

增加对referer的访问白名单

parent 099065ad
Showing with 3 additions and 2 deletions
......@@ -59,8 +59,9 @@ if config.redis_auth ~= "" and ok then
end
end
ngx.say(ngx.req.get_headers()['referer'])
ngx.say(red:sismember('ichunt_waf_white_referer', ngx.req.get_headers()['referer']))
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