Welcome! Log In Create A New Profile

Advanced

nginx hotlinking protection issue with wildcards !!

May 08, 2014 06:16PM
hello,

I am using hotlinking protection for mp4 files but found that whenever
i use wildcard in hot-linking, it doesn't work properly and videos even
play on the domain where it doesn't suppose to be buffer.

My mp4 config :

location ~ \.(mp4)$ {
mp4;
root /var/www/html/tunefiles;
expires 7d;
valid_referers none blocked server_names mydomain *.mydomain *.
facebook.com *.twitter.com *.seconddomain.com *.thirddomain.com
fourthdomain.com *.fourthdomain.com fifthdomain.com www.fifthdomain.com
embed.fifthdomain.com;
if ($invalid_referer) {
return 403;
}
}

The mp4 file is buffering on the following domain which doesn't suppose to
be in valid_referers variable.

http://www.tusnovelas.net/telenovela/lo-que-la-vida-me-robo-capitulo-138

Nginx-1.4.7

Help will be highly appreciated.

Regards.
Shahzaib
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx hotlinking protection issue with wildcards !!

shahzaib1232 May 08, 2014 06:16PM

Re: nginx hotlinking protection issue with wildcards !!

Maxim Dounin May 08, 2014 10:26PM

Re: nginx hotlinking protection issue with wildcards !!

shahzaib1232 May 09, 2014 01:38AM

Re: nginx hotlinking protection issue with wildcards !!

shahzaib1232 May 09, 2014 01:46AM

Re: nginx hotlinking protection issue with wildcards !!

Maxim Dounin May 09, 2014 02:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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