如何阻止人们查看我的 Amazon S3 存储桶中的每个文件?
如果有人访问我的存储桶的 URL,他们就能够看到列出的每个文件。
尽管我希望公众能够看到我的存储桶中的文件,但我不希望此列表视图可用。有没有办法阻止这样的“目录列表”?
If someone goes to the url of my bucket, they are able to see every single file listed.
Although I want the files in my bucket to be able to be seen by the public, I'd prefer not to have this list view available. Is there a way to prevent "directory listings" like this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该从存储桶的 ACL 中删除“所有用户”内置组的读取权限。您可以使用 CloudBerry Explorer 免费软件 等工具来完成此操作
确保您对要从 S3 提供服务的文件保持读取访问权限。
谢谢
安迪
you should remove read access for "All Users" built-in group from the bucket's ACL. You can do that using the tool like CloudBerry Explorer freeware
Make sure you keep read access on the files you want to serve from S3.
Thanks
Andy