How to find out when the variable nginx $ http_referer is not set or is empty?
I get some requests that don't have http link. In nginx logs, $ http_referer looks like this: "-". What I'm trying to do is return 403; if $ http_referer is not set or empty, as in this case.
Thank!
source
share