Protect audio file from being downloaded while still being playable through JQuery JPlayer

馋奶兔 提交于 2019-11-28 11:34:40

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
  • 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

  • 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"!

I found a possible answer for you, using PHP: Solution using PHP sessions

It's a long thread, but there's code there that will help you.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!