<div dir="ltr"><div><div><div><div><div>hello,<br><br></div>     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. <br>
<br></div>My mp4 config :<br><br>location ~ \.(mp4)$ {<br>                mp4;<br>                root /var/www/html/tunefiles;<br>                expires 7d;<br>       valid_referers none blocked server_names mydomain *.mydomain *.<a href="http://facebook.com">facebook.com</a> *.<a href="http://twitter.com">twitter.com</a> *.<a href="http://seconddomain.com">seconddomain.com</a> *.<a href="http://thirddomain.com">thirddomain.com</a> <a href="http://fourthdomain.com">fourthdomain.com</a> *.<a href="http://fourthdomain.com">fourthdomain.com</a> <a href="http://fifthdomain.com">fifthdomain.com</a> <a href="http://www.fifthdomain.com">www.fifthdomain.com</a> <a href="http://embed.fifthdomain.com">embed.fifthdomain.com</a>;<br>
              if ($invalid_referer) {<br>                    return   403;<br>}<br>}<br><br></div>The mp4 file is buffering on the following domain which doesn't suppose to be in valid_referers variable.<br><br><a href="http://www.tusnovelas.net/telenovela/lo-que-la-vida-me-robo-capitulo-138">http://www.tusnovelas.net/telenovela/lo-que-la-vida-me-robo-capitulo-138</a><br>
<br></div>Nginx-1.4.7<br><br></div>Help will be highly appreciated.<br><br>Regards.<br>Shahzaib<br></div>