hotlinking_protection.conf (357B)
1 # -*- mode: nginx; mode: flyspell-prog; ispell-local-dictionary: "american" -*- 2 3 ### Hotlinking protection for images. Include it in any context you 4 ### want. Adjust the list of allowed referers to your liking. 5 6 valid_referers none blocked *.example.com *.google.com my.site.com; 7 8 if ($invalid_referer) { 9 return 200 "No image hotlinking allowed!\n"; 10 }