Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

I have an S3 bucket. When accessing its root URL via https://s3.amazonaws.com/... it tells me Access denied.

The S3 bucket has no permission rules defined for Everyone.

However, accessing the same bucket via our Cloudfront Domain Name a full ListBucketResult is being returned.

Cloudfront is giving a full directory listing, which we want to prevent.

How can I disable that listing via Cloudfront?

I tried doing it by invalidating all objects (*) in Cloudfront, without effect.

1 Answer

0 votes
by (44.4k points)

Set Default Root object for your CloudFront distribution

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories

...