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?
我将音频文件保存在服务器上的文件夹中。他们被JQuery JPlayer调用来播放。但是,如果某人查看该页面的来源,他们可以找到该文件的位置并简单地下载它。我想保护文件不被下载,但仍允许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.
我试过用.htaccess拒绝该文件夹以及保护文件夹的密码,但这会阻止JPlayer播放这些文件。
3 个解决方案
#1
2
It's impossible to stop a savvy user stealing your media. But if you like, you could
要阻止一个精明的用户窃取您的媒体是不可能的。但如果你愿意,你可以
- use oAuth to govern access to the media resource
- 使用oAuth来管理对媒体资源的访问
- teach your server to only respond to media requests that contain "special" HTTP Headers, Cookies etc.
- 教你的服务器只响应包含“特殊”HTTP标头,Cookies等的媒体请求。
- use DRM (washes mouth out)
- 使用DRM(洗出口)
- 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
为了节省时间,我建议您接受您发布的任何可以复制/拍摄的内容。所以,为什么不发布
- a sample snippet (e.g. the first minute)
- 一个示例代码段(例如第一分钟)
- A lower-bitrate / mono taster version
- 低比特率/单声道品尝版
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"!
最近,一部允许你播放Paul McCartney新专辑的小部件发布在Guardian中......这是多么“安全”我不知道,我打开了Chrome Dev Tools Network标签并帮助自己做任何“audio / mpeg”!
#2
1
I found a possible answer for you, using PHP: Solution using PHP sessions
我找到了一个可能的答案,使用PHP:使用PHP会话的解决方案
It's a long thread, but there's code there that will help you.
这是一个很长的线程,但那里有代码可以帮助你。
#3
0
You should be aware (just in case you're not) that if someone can play the file in their browser, there is nothing to stop them playing the file and using recording software to capture the audio.
您应该知道(如果您不是),如果有人可以在浏览器中播放该文件,则无法阻止他们播放文件并使用录制软件捕获音频。
#1
2
It's impossible to stop a savvy user stealing your media. But if you like, you could
要阻止一个精明的用户窃取您的媒体是不可能的。但如果你愿意,你可以
- use oAuth to govern access to the media resource
- 使用oAuth来管理对媒体资源的访问
- teach your server to only respond to media requests that contain "special" HTTP Headers, Cookies etc.
- 教你的服务器只响应包含“特殊”HTTP标头,Cookies等的媒体请求。
- use DRM (washes mouth out)
- 使用DRM(洗出口)
- 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
为了节省时间,我建议您接受您发布的任何可以复制/拍摄的内容。所以,为什么不发布
- a sample snippet (e.g. the first minute)
- 一个示例代码段(例如第一分钟)
- A lower-bitrate / mono taster version
- 低比特率/单声道品尝版
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"!
最近,一部允许你播放Paul McCartney新专辑的小部件发布在Guardian中......这是多么“安全”我不知道,我打开了Chrome Dev Tools Network标签并帮助自己做任何“audio / mpeg”!
#2
1
I found a possible answer for you, using PHP: Solution using PHP sessions
我找到了一个可能的答案,使用PHP:使用PHP会话的解决方案
It's a long thread, but there's code there that will help you.
这是一个很长的线程,但那里有代码可以帮助你。
#3
0
You should be aware (just in case you're not) that if someone can play the file in their browser, there is nothing to stop them playing the file and using recording software to capture the audio.
您应该知道(如果您不是),如果有人可以在浏览器中播放该文件,则无法阻止他们播放文件并使用录制软件捕获音频。