流式传输视频文件并阻止直接下载。
我想用 Flash 播放器流式传输文件(mp4),但我想隐藏或阻止直接链接..我尝试了很多方法,但这些都不起作用,所以我问是否可以这样做..感谢您 :)
I Want to Stream a file (mp4) with a flash player, but i want to hide or block the direct link..i've tryed many things but none of these worked, so i'm asking if is possible do this..thanks you :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的服务器可以运行它,那么您的客户端也可以提取视频。有几种工具可以实现这一点。您可以将文件分成不同的部分或使用不同的混淆技术,但如上所述,除了停止一些手动下载之外,这没有任何意义。
摘要:如果客户可以查看,他也可以下载。
更新:
但是,您可以使用类似
getVideo.php?id=1
作为 URL,检查脚本是否直接运行以确保用户没有访问该页面(因此尝试直接访问视频源)。在您应该运行的页面中:
在 getVideo.php 中:
If your server can run it, then your client can extract the video too. There are several tools for that. You could separate the file in different parts or use different obfuscation technologies, but that would, as said, serve no point, except for stopping some manual downloading.
Summary: If client can view it, he can also download it.
Update:
You could, however, make it harder by using something like
getVideo.php?id=1
as URL where you check if the script is being ran directly to ensure that the user isn't visiting the page (and therefore trying to access the video source) directly.In your page that should be run:
And in the getVideo.php: