阻止渐进式下载 mp3?

发布于 2024-07-13 10:51:52 字数 148 浏览 7 评论 0原文

我正在寻找一些在 flash 中创建 mp3 播放器的解决方案; 一种使用流式传输或某种混淆来阻止用户下载源 mp3 的文件。 如果我使用使用 RMTP: 协议的服务器/解决方案,是否会阻止下载? 是否有可能使用 Amazon S3 服务器来提供文件但隐藏文件的实际 URL?

I'm looking for some solutions for creating an mp3 player in flash; one that either uses streaming or some kind of obfuscation to prevent users from downloading the source mp3. If I used a server/solution that used the RMTP: protocol, would that prevent the download? Are there any possibilities for using Amazon S3 server for serving the files but hiding the actual URL of the file?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

还不是爱你 2024-07-20 10:51:52

不,RTMP 不会阻止直接下载——如果用户可以找到直接 URL,那么他们仍然可以下载文件。 我不了解 S3,但我使用过像 Red5 这样的流媒体服务器,并且知道可以直接从中下载 MP3 内容,因此谨慎保护您的服务器以防止人们查看索引等

。正如您所建议的,URL 是一种可能性,就像即时重命名一样。 您可以将 GUID 传递给客户端,然后在服务器上将 MP3 复制到与该 GUID 命名相同的目录中。 客户端从该位置下载,然后删除副本。 这当然会给服务器带来更高的磁盘负载,但我只是为了集思广益而提出这个想法。 :)

简而言之,据我所知,如果用户有足够的积极性,就可以直接通过 RTMP 获取 MP3 内容,因此您不应该玩猫捉老鼠的游戏,而应该使用少量的劝阻措施来防止人们滥用您的网站,但是并不是为了阻止你完成其他工作以赢得这样的军备竞赛。

编辑:再想一想,这对于某些流媒体服务器来说可能是可能的......也许只是像 Red5 这样的服务器允许用户在知道 URL 的情况下也下载内容。 尽管如此,斯科特也有一个很好的观点……您传输的任何内容都可能被拦截。

No, RTMP won't prevent direct downloading -- if the user can find out the direct URL, then they can still download the file. I don't know about S3, but I have used streaming servers like Red5 and know that it is possible to directly download MP3 content from it, and therefore is prudent to secure your server in order to prevent people from viewing indexes, etc.

Obfuscating the URL is a possibility, as you suggest, as is on-the-fly renaming. You could pass a GUID to the client, and then on the server, copy the MP3 to a directory named the same as that GUID. The client downloads from that location, and then afterwards the copy is removed. This would of course impose a higher disk load on the server, but I'm just throwing the idea out there in the interest of brainstorming. :)

In short, AFAIK it's possible to get the MP3 content directly over RTMP if the user is sufficiently motivated, so rather than playing cat-and-mouse, you should use a small amount of discouragement to prevent people from abusing your site, but not to prevent you from getting other work done in an effort to win such an arms race.

Edit: On second thought, this might be possible with some streaming media servers... maybe it's just ones like Red5 that permit the user to also download the content if they know the URL. In spite of this, Scott has a good point, too... anything you transmit can be intercepted.

老旧海报 2024-07-20 10:51:52

我敢打赌,无论您想出什么解决方案,我都可以捕获它并将其保存为 MP3。 这假设你希望我真正听一些东西。

所以答案是,如果您向用户提供数据,则无法隐藏数据。

I bet no matter what solution you come up with I can capture and save it as MP3. This assumes you expect me to actually listen to something.

So the answer is, you can't hide the data if you give your user the data.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文