Welcome! Log In Create A New Profile

Advanced

Hotlink prevention doesn't work for me?

August 11, 2011 12:50PM
Hi all!

I got the following in my config:

*********************************************************************
location / {

valid_referers none blocked site.domain.com ~(google.);
if ($invalid_referer) {
rewrite ^/wp-content/uploads.*\.(gif|jpg|jpeg|png)$ http://site2.domain.com/dont_hotlink.png last;
}

[..............]
*********************************************************************

Why isn't this sending all 'foreign' .jpg file requests to http://site2.domain.com/dont_hotlink.png ?

Using nginx 1.0.5

greetings,
Evert
Subject Author Posted

Hotlink prevention doesn't work for me?

Evert August 11, 2011 12:50PM

Re: Hotlink prevention doesn't work for me?

fbhosted August 11, 2011 01:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 77
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready