July 17, 2011 09:32AM
So not I'm not able to direct download the file, but videos also can not be started from the website's player. I have changed *.mysite.com; also with mysite.com and www.mysite.com, same result


Try this:

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

location =/hl.png {
root /home/tophi/www/images;
}

2011/7/16 tophi <nginx-forum@nginx.us>
Subject Author Posted

hotlink protection with rewrite

vicky007 January 10, 2010 01:29PM

Re: hotlink protection with rewrite

proforg January 10, 2010 01:50PM

Re: hotlink protection with rewrite

Piotr Karbowski January 10, 2010 03:12PM

Re: hotlink protection with rewrite

vicky007 January 10, 2010 03:30PM

Re: hotlink protection with rewrite

samfingcul January 30, 2010 11:51AM

Re: hotlink protection with rewrite

vicky007 January 31, 2010 07:47AM

Re: hotlink protection with rewrite

tophi July 16, 2011 07:39AM

Re: hotlink protection with rewrite

Wendal Chen July 17, 2011 09:08AM

Re: hotlink protection with rewrite

tophi July 17, 2011 09:32AM

Re: hotlink protection with rewrite

antituhan July 17, 2011 11:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 253
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready