如何保护会员网站 VPS 上的视频
我正在使用 Google App Engine 和 VPS 构建一个会员网站
该网站是由 Google App Engine 在 Python 中构建的会员网站
视频是存储在单独的 VPS 中。只有会员才能访问这些视频。
如何保护我的视频免受非会员的侵害?即使对于会员,我也想启用过期下载链接和 IP 锁定下载链接。
关于如何执行此操作有任何提示吗?我想我需要类似 http://www.disposablelinks.com/ 的东西。有没有具有类似功能的免费或开源软件?
顺便说一句:我使用的是 VPS,而不是 Amazon S3 或 Google Storage,因为云服务的带宽太贵了......我每月大约有 30GB 视频和 3T 带宽。
多谢!
=================================================== =======================
更新:我正在考虑在 VPS 上使用 PHP,并在 Google 上搜索“PHP 隐藏文件路径”并获得了很多有趣的资源。我想我可以自己解决这个问题。欢迎任何意见或建议。
I am building a membership site using Google App Engine and VPS
The site is a membership site built by Google App Engine in Python
Videos are stored in a separate VPS. Only members are supposed to have access to these videos.
How can I protect my videos from non-members? Even for members, I want to enable expiring download links and IP locked download links.
Any hint on how to do this? I guess I need something like http://www.disposablelinks.com/. Is there any free or open source software with similar features?
BTW: I am using a VPS not Amazon S3 or Google Storage because the bandwidth for cloud service is way too expensive...I have about 30GB videos and 3T bandwidth per month.
Thanks a lot!
=========================================================================
Update: I am thinking about using PHP on the VPS and Googled "PHP hide file path" and got lots of interesting resources. I think I can solve this problem on my own. Any comments or suggestions are welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将某种“标记”放入用户
cookie
中,其值如下:md5(mySecret + IP)
并在其他服务器上检查它。You can put some kind of "marker" into user
cookie
, with value like:md5(mySecret + IP)
and check it on other server.