Welcome! Log In Create A New Profile

Advanced

Re: hotlink protection with rewrite

July 16, 2011 07:39AM
None of the above methos has helped me.
My files are .swf and .mp4 .
Here is an example of my conf


valid_referers none blocked mysite.com;
location /home/tophi/www/files/
{
if ($invalid_referer) {
rewrite ^ /home/tophi/www/images/hl.png last;
}
}


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

please advice
thanks
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: 74
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