I have a script in the .htaccess file to prevent hotlinking of images and audio files. The website allows downloading of the mp3 audio file. Using this setup for the past year yielded no problems, until recently. One user could not download any of the audio files. I removed mp3 from the script and user could download the audio. This is the script I used:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mywebsite.com [NC] RewriteRule \.(jpg|jpeg|png|gif|mp3|pdf)$ mywebsite.com/hotlink.jpe [R,L]
Is there a better way to write this? Why doesn't it work with all users?