Welcome! Log In Create A New Profile

Advanced

Nginx valid_referers with "none" option disable hotlinking protection

Posted by nacesprin 
Nginx valid_referers with "none" option disable hotlinking protection
May 08, 2018 07:39AM
This is my code:

valid_referers none blocked *.alloweddomain.com;
if ($invalid_referer){
return 403;
}
}

The hotlinking doesnt work. But this works fine:

valid_referers blocked *.alloweddomain.com;
if ($invalid_referer){
return 403;
}
}

Why **none** option cause the code not work?

Reference: http://nginxlibrary.com/hotlink-protection/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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