开发者

prevent users from downloading music

i have been writing a music website for my customer using ASP.NET. Everything has been cool except I don't know how to prevent the users from downloadng the song which is being played. For example, I click "Heal the world" to play and while the song is playing, I dont't want the IDM download manager or other download programs appear the download dialog


any help for my question? I used this code to play the song

<embed type="appl开发者_如何学运维ication/x-mplayer2" 
src="files/funring/15.mp3" align="absbottom" />

And I don't want the IDM download appears as shown in the followwing image

prevent users from downloading music


The song is being played===The song is being downloaded

Get used to it.

EDIT (A more useful answer)

In all likelihood, in the case you describe, it's either a Flash Media Server/Red5/Wowza delivering audio as RTMP (yes, there are programs that can download these) or Windows Media and it's near inpenetrable DRM (and limited audience). Effectively the FMS route would be the one I would take were I shipping music to the browser and needed a good blend of max reach versus some level of obfuscation, however be aware that at the end of the day if it can be listened to, it can be copied.


I'm guessing you're putting links to the files on your webpage, something like this:

<a href="theSong.mp3">theSong</a>

This isn't what you want. Instead, you need an embedded player on the page.

Edit I did this myself just now. Here's a working example on my website.

First, go to Google Code and download their Flash player (my page uses the simplest one).

Next, put the .swf from that page on your website. Then on your page you put this:

<object type="application/x-shockwave-flash" data="player_mp3_1.0.0.swf" 
    width="200" height="30">
    <param name="movie" value="player_mp3_1.0.0.swf" />
    <param name="FlashVars" value="mp3=media/theSong.mp3" />
</object>

Notes
1. Note that you have to put the name of the player's .swf file in two places.
2. Instead of theSong.mp3, put the actual location of the music file

Apparently there are lots of ways to customize the look of the player, but I didn't look for the documentation.


The only solution I think might help is to stream some kind of ENCRYPTED VERSION (or DRM protected version) of the song. Of course, you will need a special player for your songs that will contain the CRYPTO KEY (DRM decoder) to play the music.

If you stream MP3 or any other open formats, one way or the other, users will be able to download, store and play the music.


If you want the users to pay for the music offer a good service with reasonable prices and they will pay.

Preventing users to do something never works, there's always someone who finds a workaround. Actually, preventing users to do something presses them to find a workaround.

If something is played you can record it, no matter what "protection" it has. Even the most super-sofisticated protection cannot prevent the user to connect a cable from the audio output of their PC to an external recorder and burn it to a CD or use mplayer to do it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜