Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nodesocket
· 13y ago · 0 comments
Correct me if I am wrong, but wouldn't the nginx directive `valid_referers` (
http://wiki.nginx.org/HttpRefererModule#valid_referers
) prevent hot-linking?
Comments
[–]
mastahyeti
13y ago
It would, but it would create other problems also. If I were to link to a raw.github.com URL on HN, it would be disallowed because the Referer header would be "incorrect".
[–]
Amadou
13y ago
Not to mention the fact that referrers are an optional part of the http spec, so requiring them is bad form to begin with.