Welcome! Log In Create A New Profile

Advanced

Allow based on referrer

Posted by morayi 
Allow based on referrer
November 02, 2011 09:41PM
I have the following in my config but I can't get it to work. Any ideas how to allow visitors based on referrer URL

location /files/ {
valid_referers dev.mydomain.com/member-level1/;

if ($invalid_referer) {
return 403;
}
}

Thanks,
Re: Allow based on referrer
November 09, 2011 04:52AM
I didn't use a path information at "valid_referers" and it works.

T.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 136
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