1

I use hotlink protection in Nginx and it is working very well!

For some reason it is not allowing visitors to my site using Firefox to see any images.
For visitors using IE, Chrome, Safari, and Opera, it works just fine: the images show up on my site but not if you try to hotlink.

I checked Firefox on Win and on Mac and it happens in both places. Headers sent by Firefox have the same referrers as IE and the others as far as I can tell.

The hotlink protection code looks like so

location ~ \.(jpg|jpeg|png|gif|swf)$ {
    valid_referers server_names blocked *.mysite.com;
    if ($invalid_referer) {
        rewrite ^(.*)$ /nopeeking.png break;
    }
}

location =/visitpg.png {
    root /path/to/my/site;
}   

Any ideas as to why this works in all other browsers but not in Firefox?

voretaq7
  • 79,345
  • 17
  • 128
  • 213
Adergaard
  • 11
  • 1

0 Answers0