请只可登录用户Amazon S3的文件 [英] Make Amazon S3 files available only to logged in users

查看:144
本文介绍了请只可登录用户Amazon S3的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样在Amazon S3中的文件只登录用户访问。我使用PHP为我的网站。静态文件存储在Amazon S3的。只有用户登录到我的网站应该能够访问亚马逊云中的文件。这可能吗?

How do I make the files in Amazon S3 accessible only to logged in users. I use PHP for my website. Static files are stored in Amazon S3. Only users logged in to my website should be able to access the files in Amazon cloud. Is it possible?

推荐答案

您可以使用您的应用程序可以根据用户登录生成的签署网址:

You can use signed URL that are generated by your application based on users logins:

http://docs.aws.amazon.com/AmazonS3/最新的/ dev / S3_QSAuth.html

这篇关于请只可登录用户Amazon S3的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆