Welcome! Log In Create A New Profile

Advanced

Image hotlink prevention

Posted by honeylemon 
Image hotlink prevention
February 22, 2010 07:13AM
Hello,

I'm curious what you folks use for image hotlink prevention?

I found this code but it's not working for me:

location ~ \.(jpg|png|gif)$ {
valid_referers server_names blocked none frienddomain.com *.frienddomain.com ;
if ($invalid_referer) {
return 403;
}
}

Any ideas what works?

Thanks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 166
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready