local headers = ngx.req.get_headers() | |
if not string.find(headers["Referer"],"localhost") then | |
return ngx.exit(ngx.HTTP_FORBIDDEN) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment