You could try to embed it into flash, and load the mp3 dynamically. Preventing right-click wouldn't be sufficient i'm afraid.
-r-
Main Topics
Browse All TopicsI have a website with mp3. At the moment, they can be played and downloaded. Is there some way to allow playing but prevent the right-click 'Save Target As' operation.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The java script solution only applys to the page itself, but not to the button object clicked to play the file. This is close to what I'm looking for. Is there a way to apply the function to the button?
I have a hard time believing it's impossible to achieve this. Yes, you can use an app like total recorder. But the object is to prevent downloading the file, not prevent recording.
The comment from justinbillig is both useless and silly.
Playing an mp3 does not save it to disk. If that were true, all of our hard drives would be full in no time.
Let's hear some solutions. Is this too hard? Do I need to offer more points?
Jim
>The comment from justinbillig is both useless and silly.
I must agree with him, sorry
>Playing an mp3 does not save it to disk. If that were true, all of our hard drives would be full in no time.
Have you ever heard of "temporarily internet files", well that is a directory that stores file that is beeing listened from your page. This folder is always filled with "temp" files. Old contens get automaticaly deleted when new content arrive (images, mp3s, html). How many files can be stored depends on settings how huge that folder can be.
To prove my "theory" got to your page listen to your song and after that go to your temp internet files (located in document settings...).
If someone can listen to it, it can also have it. End of story. :)
Cheers
I think the suggestion to stream is the most interesting possibility so far. I often listen to internet radio stations that stream the music via a separate window with Media Player embedded in it. I do not see any song files saved anywhere with that.
I was aware of temp files of course, but I was thinking of explicit saves.
Jim
Business Accounts
Answer for Membership
by: archrajanPosted on 2004-12-09 at 05:55:50ID: 12783133
This disables right click
m
/////////
.getElemen tById&&!do cument.all ){
nt.MOUSEDO WN); NS4; etElementB yId){ IE4;
Function("alert(message);r eturn false")
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.co
var message="Function Disabled!";
//////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Eve
document.onmousedown=click
}
else if (document.all&&!document.g
document.onmousedown=click
}
document.oncontextmenu=new
// -->
</script>