如何使用 swftools 隐藏 drupal 中嵌入的 mov 文件的 url?

发布于 2024-09-11 00:35:07 字数 162 浏览 7 评论 0原文

如何使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

-柠檬树下少年和吉他 2024-09-18 00:35:07

您可以加密视频名称,这样您就可以得到 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 have www.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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文