Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Nginx valid_referers with "none" option disable hotlinking protection

$
0
0
This is my code:

valid_referers none blocked *.alloweddomain.com;
if ($invalid_referer){
return 403;
}
}

The hotlinking doesnt work. But this works fine:

valid_referers blocked *.alloweddomain.com;
if ($invalid_referer){
return 403;
}
}

Why **none** option cause the code not work?

Reference: http://nginxlibrary.com/hotlink-protection/

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>