如何阻止人们查看我的 Amazon S3 存储桶中的每个文件?

发布于 2024-08-16 23:04:54 字数 99 浏览 2 评论 0原文

如果有人访问我的存储桶的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

番薯 2024-08-23 23:04:54

您应该从存储桶的 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文