Free auditStart free
GuideError · HTTP status codes

403 Forbidden on CloudFront

Fix a CloudFront 403: alternate domain name missing, AWS WAF block, origin firewall, S3 access, geo restriction, signed URLs or stacked distributions.

5 min
read
4
sources
Oct 21, 2026
updated
Scaplet Editorial Team
author
The short answer

A CloudFront 403 means the viewer isn't authorized for the requested resource. AWS lists seven common causes: an alternate domain name (CNAME) not added to the distribution, AWS WAF blocking, a custom origin returning 403, an S3 origin denying access, geographic restrictions, signed URL or cookie requirements, and stacked distributions. Test the origin directly to split CloudFront from origin causes.

  1. What a CloudFront 403 means
  2. Find which layer returned it
  3. S3 origins: what AWS lists
  4. Two traps that waste time
  5. What it does to SEO
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
02How it works

Find which layer returned it

Inspect the alternate domain names on a distribution
aws cloudfront get-distribution-config --id E1234EXAMPLE \
  --query 'DistributionConfig.Aliases'

If your hostname is missing from that list, add it to the distribution. The DNS CNAME pointing to the CloudFront URL is only half of the setup; AWS says the other half is adding the CNAME to the distribution configuration.

  1. 01

    Request the default CloudFront domain

    Test the distribution's own domain name as well as your custom hostname. If only the custom hostname returns 403, suspect the alternate domain name setup.

  2. 02

    Test the origin directly

    For a custom origin, AWS says to make the request straight to it. If you can reproduce the error without CloudFront, the origin is the cause; read its logs.

  3. 03

    Check AWS WAF

    If a web ACL is attached, look at its rules for a blocked request. AWS points to web ACL and testing-and-tuning guidance for this.

  4. 04

    Check the S3 origin

    For an S3 origin, check the bucket policy for the OAI or OAC, the object key, and the origin domain type.

  5. 05

    Check restrictions

    Review geographic restrictions and the Restrict viewer access setting on the behavior.

03Checklist

S3 origins: what AWS lists

When the origin is an S3 bucket, the 403 can come from the bucket side. AWS's S3 guidance says to check these common issues when a static website behind CloudFront gives Access Denied:
First2
Origin domain format. Use the S3 website endpoint format (bucket-name.s3-website-region.amazonaws.com) rather than the REST API endpoint, and make sure static website hosting is enabled.
Bucket policy. It should allow your distribution's OAI or OAC and include the s3:GetObject permission.
Next1
Path and object. A wrong path or an object that does not exist also returns 403 on an S3 origin, per the CloudFront guide.
Then1
Host header. Forwarding the Host header together with the REST API endpoint is a documented cause.

The S3 side is covered in S3 Access Denied, including Block Public Access and policy evaluation. AWS also notes that this CloudFront error differs from the 403 you get when accessing S3 directly, so check both the distribution and the bucket.

04Explained

Two traps that waste time

  • Custom error pages can hide the real cause. AWS lists custom error pages configuration among the reasons an S3 origin yields a 403. If the page you see isn't the origin's, review how CloudFront processes errors for your distribution.
  • Don't put one distribution in front of another. AWS says it doesn't recommend it, and that a chain of two or more distributions to the origin makes CloudFront return 403.
05Explained

What it does to SEO

Google treats a 4xx other than 429 as content that doesn't exist, and removes a previously indexed URL from its index. 401 and 403 don't change the crawl rate. A geographic restriction or a WAF rule that returns 403 to Googlebot's locations or user agent can therefore remove pages from search. See 4xx errors and Google's page on how HTTP status codes affect its crawlers. For the CDN concept see CDN.

Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01Why does CloudFront return 403 with my custom domain?

If you created the DNS CNAME but did not add the alternate domain name to the distribution configuration, the request returns a 403. Add the CNAME to the distribution, and keep the DNS record pointing to the CloudFront URL.

02How do I tell whether CloudFront or my origin sent the 403?

For a custom origin, make the request directly to the origin. If the error reproduces without CloudFront, the origin is the cause. If AWS WAF sits in the path, CloudFront can't distinguish its 403s from your origin's, so check the web ACL for a blocked request.

03Can geographic restrictions cause a CloudFront 403?

Yes. If you enabled geographic restrictions (geoblocking), blocked users receive a 403 error.

04Why does S3 behind CloudFront return 403?

Common reasons are no OAI or OAC on a private bucket, a wrong path, a missing object, the Host header forwarded with the REST API endpoint, or custom error pages. Check the bucket policy and the origin type.

Sources · 4

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • amazon.com
  • google.com
  1. 01HTTP 403 status code (Permission Denied) - Amazon CloudFront Developer Guidedocs.aws.amazon.com · checked 2026-10-25
  2. 02get-distribution-config - AWS CLI Command Referencedocs.aws.amazon.com · checked 2026-10-25
  3. 03Troubleshoot access denied (403 Forbidden) errors in Amazon S3docs.aws.amazon.com · checked 2026-10-25
  4. 04How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane