Welcome! Log In Create A New Profile

Advanced

valid_referers dynamic hostname

May 18, 2013 01:31PM
Sorry for posting here - don't know for sure if it's the right place.

I have an issue:

1) I use nginx as reverse proxy, but I don't always know the domain name for which I'm serving, so my setup looks like this:

server_name _ $host 0.0.0.0;

2) I try to block invalid referers but when I try to add $host to valid_referers - it doesn't seem to work:

valid_referers none blocked server_names $host ~\.google\. ~\.yahoo\. ~\.bing\. ~\.ask\. ~\.live\. ~\.googleusercontent.com\. ;


How can I make this work?
Also please note that I don't know regexp.


Kind regards,
Vlad
SubjectAuthorPosted

valid_referers dynamic hostname

vlad031@binkmail.comMay 18, 2013 01:31PM

Re: valid_referers dynamic hostname

vlad031@binkmail.comMay 20, 2013 07:27AM

Re: valid_referers dynamic hostname

Maxim DouninMay 20, 2013 09:20AM

Re: valid_referers dynamic hostname

vlad031@binkmail.comMay 20, 2013 02:14PM

Re: valid_referers dynamic hostname

B.R.May 20, 2013 02:28PM

Re: valid_referers dynamic hostname

Maxim DouninMay 20, 2013 02:36PM

Re: valid_referers dynamic hostname

vlad031@binkmail.comMay 24, 2013 07:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 81
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready