I am referring to the following code on this page:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost.*$ [NC]
RewriteRule \.(gif|jpg)$ - [F]
(htaccess) How to prevent a file from DIRECT URL ACCESS?
I use this way:
RewriteCond %{HTTP_REFERER} !^mysite.net\.ltd [NC]
RewriteCond %{HTTP_REFERER} !^mysite.net\.ltd.*$ [NC]
RewriteRule \.(mp3|m4a|ogg|wav)$ - [F]
But this does not play the audio file on the site. Please help me. Thanks