Keeping the Bucket Private Behind CloudFront
A static site is served by CloudFront from S3. Users can still bypass CloudFront with the bucket URL. How do you make the bucket reachable only through CloudFront?
Choose one answer
Attach a WAF web ACL to the bucket that blocks requests without a CloudFront-specific header.
Enable static website hosting on the bucket and use its endpoint.
Turn on S3 Transfer Acceleration for the bucket.
Origin access control, allowing only that distribution in the bucket policy.