Welcome! Log In Create A New Profile

Advanced

Re: valid_referers directive not working correctly

November 12, 2012 04:19AM
Ahh right, so basically I have to copy:

valid_referers server_names not-my-domain.com;
if ($invalid_referer) {
return 403;
}

Into the php match block. Is there a way to do this without having the same exact code copied into both location blocks?
SubjectAuthorPosted

valid_referers directive not working correctly

justinNovember 12, 2012 04:03AM

Re: valid_referers directive not working correctly

VBartNovember 12, 2012 04:14AM

Re: valid_referers directive not working correctly

justinNovember 12, 2012 04:19AM

Re: valid_referers directive not working correctly

Igor SysoevNovember 12, 2012 04:28AM

Re: valid_referers directive not working correctly

Valentin V. BartenevNovember 12, 2012 04:32AM

Re: valid_referers directive not working correctly

justinNovember 12, 2012 04:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 60
Record Number of Users: 5 on May 22, 2013
Record Number of Guests: 150 on May 22, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready