Forum Moderators: phranque

Message Too Old, No Replies

Stop 'right click save as'?

         

Encore

1:29 am on Nov 3, 2004 (gmt 0)

10+ Year Member



Am using the following code to prevent people linking to mp3 files on my site. Works well but if the link is right clicked and 'saved as' it works.

RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(mp3)$ - [F]

Anyway or making right click save as not work when sites link to my files?

vkaryl

3:48 am on Nov 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try searching locally for "disable right click" - you'll get a ton of links to read, which should show you the ineffectiveness of the whole process a lot quicker than waiting on replies again....

I can't give you the input info for local search here through google - I have it set up in Sys Prefs in Control Panel, so don't now remember what the actual google seach command is. Hopefully one of the other guys will be along shortly with the info....

[Edit - my host has a setup through cpanel which prevents hotlinking to files and also seems to prevent "right-click/save as" like you're talking about. I don't know how it's done though, since cpanel is part of the package *shrug*]