Forum Moderators: phranque
[mydomain.com...]
I want to prevent my.mp3 direct download, in fact requester can listen to my.mp3 online but should not allow to download.
please suggest how to go about that.
my rule seems as below.
<Location />
RewriteEngine on
RewriteCond %{REQUEST_URI} mymp3folder/my\.mp3$ [NC]
RewriteCond %{HTTP_REFERER} ^$ [OR]
RewriteCond %{HTTP_REFERER} !mydomain.com/mymp3folder.*$ [NC]
RewriteRule (.*) [mydomain.com...] [R,NC,L]
Someone right-clicking and selecting Save Link As... is seen by your server identically as someone left-clicking and the music playing.
The only real way to secure your MP3 is to use a Flash player or similar which will obscure the URL entirely.