保护音频文件免遭下载,同时仍可通过JQuery JPlayer播放 [英] Protect audio file from being downloaded while still being playable through JQuery JPlayer

查看:98
本文介绍了保护音频文件免遭下载,同时仍可通过JQuery JPlayer播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的音频文件保存在服务器上的文件夹中.它们由JQuery JPlayer调用来播放.但是,如果有人查看页面的源代码,他们可以找到文件的位置并直接下载文件.我想保护文件免遭下载,但仍然允许JPlayer播放它们.这可能吗?

I have audio files saved in a folder on my server. They are called by JQuery JPlayer to be played. However if a person looks at the source of the page, they can find the location of the file and simply download it. I want to protect the files from being downloadable, but still allow JPlayer to play them. Is this possible?

我尝试使用.htaccess以及拒绝密码保护文件夹来拒绝该文件夹,但这会阻止JPlayer播放文件.

I have tried denying the folder with .htaccess as well as password protecting the folder, but this prevents JPlayer from being able to play the files.

推荐答案

无法阻止精明的用户窃取您的媒体.但是,如果您愿意,您可以

It's impossible to stop a savvy user stealing your media. But if you like, you could

  • 使用oAuth来控制对媒体资源的访问
  • 教导您的服务器仅响应包含特殊" HTTP标头,Cookie等的媒体请求.
  • 使用DRM(漱口水)
  • 您梦dream以求的其他URL混淆/过期方法.
  • use oAuth to govern access to the media resource
  • teach your server to only respond to media requests that contain "special" HTTP Headers, Cookies etc.
  • use DRM (washes mouth out)
  • some other URL obfuscating/expiring method you dream up..

为了节省时间,我建议您接受可以复制/获取的所有出版物.所以,为什么不发布

To save time, i suggest you accept whatever you publish can be copied / taken. So, why not publish

  • 示例片段(例如第一分钟)
  • 低比特率/单声道品尝器版本

最近,一个小部件,可让您播放Paul McCartney的新专辑,已在《卫报》上发布. ..我不知道这是多么安全",我打开了Chrome Dev Tools的网络"标签,并帮助自己处理了音频/mpeg" !

Recently, a widget allowing you to stream Paul McCartney's new album was published in the Guardian.. how this is "secure" i don't know, I opened Chrome Dev Tools Network tab and helped myself to anything "audio/mpeg"!

这篇关于保护音频文件免遭下载,同时仍可通过JQuery JPlayer播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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