如何使用Lighttpd确保视频流的安全性? [英] How to assure security for a video streaming using Lighttpd?
问题描述
我需要流传输服务器xyz.com上存在的视频.如果我访问视频的正确路径,每个人都可以观看该视频.我需要做的是为每个具有唯一视频ID的特定视频创建一个MD5sum.
I need to stream a video which is present on server say xyz.com. If I access the correct path of the video everyone is able to see that video. What I need to do is that create a MD5sum corresponding to the every particular video which has an unique video id.
因此,从现在开始,如果用户像以前一样访问视频,即:
So that from now onwards if the user is accessing the video as before ie :
它不应该加载以下内容.
it should not load for the below.
http:/xyz.com/video.mp4
http:/xyz.com/video.mp4
仅应为以下网址加载
http:/xyz.com/video.mp4?md5 = 202cb962ac59075b964b07152d234b70
http:/xyz.com/video.mp4?md5=202cb962ac59075b964b07152d234b70
有什么建议吗?
推荐答案
Lighttpd还提供了一个名为"SECDownload"的模块,它非常易于安装.它使您可以在有限的时间内提供一个网址.
Lighttpd also offers a module called "SECDownload", it is very easy to install. It enables you to make a url available for a limited time.
教程在这里: http://redmine.lighttpd.net/projects/1/wiki/Docs_ModSecDownload
这仅创建一个临时链接,URL不限于IP.如果创建了一个URL,则每个用户都可以访问它(至少在您不采取任何措施防止这种情况的情况下).
This only creates a temporary link, the url is not limited to a IP. If one url is created, every user may access it (at least if you don't do anything to prevent this).
这篇关于如何使用Lighttpd确保视频流的安全性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!