请只可登录用户Amazon S3的文件文件、用户、请只可、Amazon

2023-09-11 10:00:51 作者:一丝Q斯密

我怎样在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