如何使用 swftools 隐藏 drupal 中嵌入的 mov 文件的 url?
如何使用 swftools 和 flowplayer 3 作为视频播放器隐藏或混淆 drupal 中嵌入的 mov 文件的 url。 我尝试使用 SWFObject2 但实际上它输出的 url 非常清晰。
该网站基本上是一个在线视频销售网站,因此我希望能够阻止用户将视频下载到他们的计算机上。
How can I hide or obfuscate the url of the embedded mov files in drupal using swftools and flowplayer 3 as the video player.
I tried using SWFObject2 but infact it outputs the url very clearly.
The site is basically a online video selling site, so I want to be able to prevent users to download the videos on their computer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以加密视频名称,这样您就可以得到
www.yoursite.com/sites/all/files/fue8rughht94rjfieiwkdnd9tzdhezfh3993,而不是
。这只是存储到数据库中,当调用时,您需要解密它。www.yoursite.com/sites/all/files/myvideo.flv
或者,您可以拥有一个单一条目文件(例如 access),它采用您想要向用户显示的视频名称,例如
access?vid=myvideo.flv
。这样,您可以更轻松地检查用户是否具有下载视频的权限。我知道这与 Drupal 不太相关,但无论如何这都需要自定义方法。
You could encrypt the video name, so instead of
www.yoursite.com/sites/all/files/myvideo.flv
you havewww.yoursite.com/sites/all/files/fue8rughht94rjfieiwkdnd9tzdhezfh3993
. This simply gets stored into the database and when called, you need to decrypt it.Alternativly, you can have a singe entry file like access that takes the video name you want to show to the user like
access?vid=myvideo.flv
. This way, you can check more easily if the user has the permission to download the video.I know this is not very Drupal related but this would require a custom approach anyway.