Skip to content

Instantly share code, notes, and snippets.

@leandromoreira

leandromoreira/Origin.lua

Last active Apr 12, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.