# 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.

Canonical: https://scaplet.com/errors/http/403/cloudfront

Guide Error · HTTP status codes

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

403 4xx · Client error

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](#what-a-cloudfront-403-means)
2. [Find which layer returned it](#find-which-layer-returned-it)
3. [S3 origins: what AWS lists](#s3-origins-what-aws-lists)
4. [Two traps that waste time](#two-traps-that-waste-time)
5. [What it does to SEO](#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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F403%2Fcloudfront%20(%22403%20Forbidden%20on%20CloudFront%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F403%2Fcloudfront%20(%22403%20Forbidden%20on%20CloudFront%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F403%2Fcloudfront%20(%22403%20Forbidden%20on%20CloudFront%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F403%2Fcloudfront%20(%22403%20Forbidden%20on%20CloudFront%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_The documented causes, in the order AWS lists them

## What a CloudFront 403 means

AWS describes an HTTP 403 as the client not being authorized to access the requested resource: the request is understood, but CloudFront can't authorize viewer access. The cause can sit in the distribution, in a WAF in front of it or in the origin behind it. For the status itself, see [403 Forbidden](/errors/http/403).

Cause

### Alternate CNAME incorrectly configured

What happens

You created the DNS record but did not add the CNAME to the distribution, so the request returns 403

What to check

The Alternate domain names list on the distribution matches the hostname in DNS

Cause

### AWS WAF on the distribution or at the origin

What happens

CloudFront can't tell a 403 from your origin apart from a 403 returned by AWS WAF when it blocks a request

What to check

The web ACL rules for a blocked request

Cause

### Custom origin returns 403

What happens

A custom firewall configuration at the origin can refuse the request

What to check

Make the request directly to the origin; check origin logs

Cause

### S3 origin returns 403

What happens

No OAI or OAC on a private bucket, wrong path, missing object, REST endpoint Host header forwarding, or custom error pages

What to check

Bucket policy, object key, origin type

Cause

### Geographic restrictions

What happens

Blocked locations receive a 403

What to check

The distribution's geographic restriction setting

Cause

### Signed URL or signed cookie required

What happens

With Restrict viewer access on, requests without them get a 403

What to check

Whether the client sends a valid signed URL or cookie

Cause

### Stacked distributions

What happens

Two or more distributions in the chain to the origin make CloudFront return 403

What to check

Remove the extra distribution; AWS does not recommend stacking

**Same status, different layer**AWS notes that CloudFront can't tell a 403 from your origin apart from one returned by AWS WAF. The [status code](/glossary/http-status-codes) alone doesn't say which layer refused, so the next section splits them.

_02_How 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.

_03_Checklist

## 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:

First_2_
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.

Next_1_
Path and object. A wrong path or an object that does not exist also returns 403 on an S3 origin, per the CloudFront guide.

Then_1_
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](/errors/cdn/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.

_04_Explained

## 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.

_05_Explained

## 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](/ai-crawlers/googlebot)'s locations or [user agent](/glossary/user-agent) can therefore remove pages from search. See [4xx errors](/seo-issues/4xx-errors) and Google's page on how HTTP status codes affect its crawlers. For the CDN concept see [CDN](/glossary/cdn).

Questions

## Asked a lot.

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

_01_ Why 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.

_02_ How 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.

_03_ Can geographic restrictions cause a CloudFront 403?

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

_04_ Why 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. 01 [HTTP 403 status code (Permission Denied) - Amazon CloudFront Developer Guide](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/http-403-permission-denied.html) docs.aws.amazon.com · checked 2026-10-25
2. 02 [get-distribution-config - AWS CLI Command Reference](https://docs.aws.amazon.com/cli/latest/reference/cloudfront/get-distribution-config.html) docs.aws.amazon.com · checked 2026-10-25
3. 03 [Troubleshoot access denied (403 Forbidden) errors in Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/troubleshoot-403-errors.html) docs.aws.amazon.com · checked 2026-10-25
4. 04 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-25

## Keep learning

[All errors](/errors)

[Learn 403 Forbidden HTTP status codes](/errors/http/403) [Related 4xx errors Status codes and links](/seo-issues/4xx-errors) [Read next S3 Access Denied (403 Forbidden) CDN and hosting errors](/errors/cdn/s3-access-denied) [Do Run a free site audit Free, about two minutes](/site-audit)

Other 403 errors
[403 Forbidden in Spring Boot](/errors/http/403/spring-boot) [403 Forbidden in WordPress](/errors/http/403/wordpress) [403 Forbidden on Cloudflare](/errors/http/403/cloudflare) [API Gateway 403 Forbidden](/errors/cdn/api-gateway-403-forbidden) [S3 Access Denied (403 Forbidden)](/errors/cdn/s3-access-denied)

More in 403 Forbidden
[403 Forbidden in Apache](/errors/http/403/apache) [403 Forbidden in Chrome](/errors/http/403/chrome) [403 Forbidden in Django](/errors/http/403/django) [403 Forbidden in IIS](/errors/http/403/iis) [403 Forbidden in Laravel](/errors/http/403/laravel) [403 Forbidden in nginx](/errors/http/403/nginx) [403 Forbidden in Spring Boot](/errors/http/403/spring-boot) [403 Forbidden in WordPress](/errors/http/403/wordpress) [403 Forbidden on Cloudflare](/errors/http/403/cloudflare) [403 Forbidden on CloudFront](/errors/http/403/cloudfront)

Terms on this page
[HTTP status codes](/glossary/http-status-codes) [CDN](/glossary/cdn) [User agent](/glossary/user-agent)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
