如何使用Cloudfront保护下载 [英] How to secure downloads using Cloudfront
问题描述
我有包含教育内容的视频。我想使用S3和DNN网站分发这些视频。我已经用所有视频创建了s3存储桶。
我希望用户能够登录并能够下载他们已付费的视频。
I have videos containing educational content. I'd like to distribute these videos using S3 and my DNN site. I've created my s3 bucket with all the videos. I'd like users to be able to log in and be able to download the videos that they have paid for.
此外,我想防止用户共享视频网址(热链接)。
我已经研究了私人发行版,但是就签名的URL而言似乎有点复杂。
Also, i'd like to prevent users from sharing video urls(hotlinking). I've looked into private distributions but it seems a little complicated as far as signed urls.
理想情况下,我会对cloudfront,仅允许从我自己的域中下载视频。(我记得自己在s3上做过类似的事情,其中我会添加一个自定义ACL,该ACL将指定httpreferrer)
Ideally, I'd have some kind of a policy on cloudfront that would only allow videos to be download from my own domain.(i remember doing something like this with s3 itself where i would add a custom acl that would specify the httpreferrer)
感谢您的帮助,由于信息过载,我的脑袋即将爆炸。
Thanks for your help, my head was about to explode due to information overload.
Cristian
推荐答案
理想的情况是使用一个为您生成过期URL的插件。
如果您使用的是Joomla或Wordpress,则可能需要研究S3Media Stream。
只需在Google上搜索它,您就会很容易找到它。
The ideal would be to use a plugin that generates the expiring URLs for you. If you are on Joomla or Wordpress, you may want to look into S3Media Stream. Just google it and you will find it quite easily.
我希望这会有所帮助吗?
I hope this helps?
这篇关于如何使用Cloudfront保护下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!