Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们正在考虑使用JWPlayer向用户显示视频。但是我们不希望用户查看 html 源代码并抓取视频的 url,然后通过他们的浏览器下载该视频。有没有办法隐藏 url 或阻止使用 rails 或其他方法下载文件(但仍然能够通过播放器向用户播放视频)?
您永远无法阻止您的用户下载视频,毕竟必须下载它才能将其显示给用户。
你只能让用户更难。
我相信 JWPlayer 支持流媒体,如果你设置了流媒体服务器,用户将无法只下载视频。
编辑:用户将无法仅将文件下载为下载链接,但这会更加困难。