如何prevent IDM捕获的MP3文件? [英] How to prevent IDM capturing MP3 files?

查看:173
本文介绍了如何prevent IDM捕获的MP3文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用下面的code添加一个音乐播放器在我的网站,

I use the following code to add a Music player in my site,

<div id="player" style="z-index:100;"></div><!--Player-->

<script language="javascript" type="text/javascript">

var so = new SWFObject("flashmp3player.swf", "player", "242", "150", "9"); // Location of swf file. You can change player width and height here (using pixels or percents).
so.addParam("quality", "high");
so.addParam("wmode", "opaque");
so.addVariable("content_path","<? echo $playerpath; ?>");
so.addVariable("color_path","default.xml");
so.addVariable("script_path","flashmp3player.php");
so.write("player");

</script>

文件夹中的MP3文件 $ playerpath (例如:parentfolder / childfolder)将由播放器上播放。但我不想让访客下载的MP3文件。但是,互联网下载管理器安装在他们的系统中谁拥有用户看到图标左下角时每首歌曲播放。每当他们单击歌曲被下载的图标。如何prevent呢?

The MP3 files in a folder $playerpath (example: parentfolder/childfolder) will be played by the player. But I do not want the visitors to download the MP3 files. But users who have Internet Download Manager installed in their system see a icon at the left bottom whenever each song plays. Whenever they click the icon the song gets downloaded. How to prevent this?

推荐答案

这是固有的,你要发送裸MP3文件到客户端的事实。在页面上试图阻止这一点,因为实施,就像是试图阻止人们通过阻止他们的能力,窃取你的图片上单击右键。很有可能,这个互联网下载管理器中看到了这样一个事实:一个MP3文件的请求从浏览器中走出去,像这样:

This is intrinsic to the fact that you're sending bare MP3 files to the client. Trying to stop this, as implemented, is like trying to stop people from stealing your images by blocking their ability to right-click on the page. More than likely, this "Internet Download Manager" sees the fact that a request for an MP3 file is going out from the browser, like so:

GET /my_aweseome_file.mp3 HTTP/1.1

在这一点,它说,嘿,用户的浏览器加载一个MP3,让我们下载。所以,如果你想prevent这一点,不要让客户端请求的MP3文件。你可以将它们存储在Flash文件或其他东西,甚至从的Icecast 服务器串流,如果你只是希望他们播放。记住,虽然,在某些时候,音频,必须的听到的,很像上述图像必须的看出的,并且一些在某些时候就能够捕获的音频或图像进行存储。

At which point, it says, "hey, the user's browser is loading an MP3, let's download it". So, if you want to prevent this, don't allow the client to request MP3 files. You could store them in a Flash file or something else, or even stream them from an Icecast server, if you just want them to play back. Keep in mind, though, that at some point, the audio has to be heard, much like the aforementioned images must be seen, and something at some point will be able to capture that audio or that image for storage.

这篇关于如何prevent IDM捕获的MP3文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆