Welcome! Log In Create A New Profile

Advanced

Re: hotlink protection with rewrite

January 10, 2010 01:50PM
Hi !
Something like this :

valid_referers none blocked domain.tld www.domain.tld;

location /flv/
{
if ($invalid_referer) {
rewrite ^ /path/to/hotlink.flv last;
}
}

On Mon, Jan 11, 2010 at 1:29 AM, vicky007 <nginx-forum@nginx.us> wrote:
> Hello,
> I moved from apache to nginx few quite busy websites and currently I need help with hotlink protection of swf/flt files. I can send hotlinking domains to 403, but I want to supply them with for example hotlink.swf file of my own.
>
> I have not figured out how to rewrite the url in case of referer other than my own domains. Would anyone be so kind and advise me in this?
>
> Thank you..
>
> Vicky




--
Aleksej Besciokov
EMail/JID: proforg@maloletka.ru
phone: +7 495 7853149

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
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: 293
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