Make Amazon S3 files available only to logged in users

冷暖自知 提交于 2019-12-10 15:27:34

问题


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?


回答1:


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

http://docs.aws.amazon.com/AmazonS3/latest/dev/S3_QSAuth.html



来源:https://stackoverflow.com/questions/16028777/make-amazon-s3-files-available-only-to-logged-in-users

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