How to secure downloads using Cloudfront

删除回忆录丶 提交于 2020-01-03 02:48:10

问题


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.

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.

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


回答1:


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?



来源:https://stackoverflow.com/questions/7234684/how-to-secure-downloads-using-cloudfront

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!