Page 1 of 1

Hotlink protection

Posted: Sat Jun 17, 2017 9:24 pm
by sina_mech
Hi,

I would like to limit hotlink to "mp4" files on my website. I'm using this .htaccess file:

Code: Select all

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?MYWEBSITE\.com/  [NC]
RewriteRule .*\.(mp4)$ [F,NC]
but it doesn't work at all. I'm using VestaCP 0.9.8 - Release 17. Any suggestions? :)

Thanks