# 403 Forbidden on Cloudflare

> A Cloudflare 403 comes from your origin or from a Cloudflare security feature. Tell them apart, find the blocking rule by Ray ID and fix it safely.

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

Guide Error · HTTP status codes

A Cloudflare 403 comes from your origin or from a Cloudflare security feature. Tell them apart, find the blocking rule by Ray ID and fix it safely.

5 min

read

7

sources

Oct 21, 2026

updated

Scaplet Editorial Team

author

403 4xx · Client error

The short answer

A 403 on a Cloudflare site comes from one of two places. If the page has no Cloudflare branding, your origin server returned it. If it does, a Cloudflare security feature blocked or challenged the request: a WAF rule, Security Level, DDoS protection, Browser Integrity Check or a 1xxx error such as 1020. Find the event by Ray ID, then change that rule.

1. [Is the 403 from Cloudflare or from your origin?](#is-the-403-from-cloudflare-or-from-your-origin)
2. [What error 1020 means](#what-error-1020-means)
3. [How visitors can get past it](#how-visitors-can-get-past-it)
4. [How site owners find and fix the cause](#how-site-owners-find-and-fix-the-cause)
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%2Fcloudflare%20(%22403%20Forbidden%20on%20Cloudflare%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%2Fcloudflare%20(%22403%20Forbidden%20on%20Cloudflare%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%2Fcloudflare%20(%22403%20Forbidden%20on%20Cloudflare%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%2Fcloudflare%20(%22403%20Forbidden%20on%20Cloudflare%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_Good to know

## Is the 403 from Cloudflare or from your origin?

Start here, because the fix is in a different place for each. Cloudflare's documentation says a 403 without Cloudflare branding is returned directly by the origin web server, not by Cloudflare. A 403 with Cloudflare branding in the response body comes from a Cloudflare security feature.

Cloudflare-side and origin-side causes of a 403
| Where | Cause | How to confirm |
| Origin | Permission rules on the origin web server, such as an Apache .htaccess file | Page has no Cloudflare branding; origin logs show the request |
| Origin | mod_security rules | Same; check the origin's security module logs |
| Origin | IP deny rules that block Cloudflare's IP ranges | Origin sees Cloudflare addresses, not visitor IPs |
| Cloudflare | WAF custom or managed rules with a block or challenge action | Security Events shows the rule |
| Cloudflare | Security Level (default Medium) | Security Events shows the feature |
| Cloudflare | DDoS protection, on by default for zones onboarded to Cloudflare | Security Events |
| Cloudflare | Browser Integrity Check | Security Events; common with missing or unusual user agents |
| Cloudflare | A 1xxx error code, for example 1020 (most 1xxx codes can come with a 403) | Error code shown on the page |
| Cloudflare | SNI mismatch: the client sends a host that does not match the SNI | Unstyled 403 that is not logged |

These rows come from Cloudflare's 403 documentation. For the status itself, see [403 Forbidden](/errors/http/403).

Some Cloudflare 403s leave no log

Cloudflare says it can serve an unstyled 403 in specific cases, such as an SNI mismatch. These errors are not logged because they happen early, before domain configuration is loaded. If Security Events shows nothing, check the TLS hostname the client used.

_02_Explained

## What error 1020 means

Cloudflare returns error 1020 (Access denied) with an HTTP 403 [status code](/glossary/http-status-codes). It means a security feature set up by the website owner blocked the request. The common cause is a security rule with a Block action and no custom response configured. Cloudflare's examples are API Shield schema validation and JWT validation.

One detail trips people up. Cloudflare says requests blocked by WAF custom rules or WAF managed rules do not get a 1020. Those get the WAF block response instead. So seeing 1020 narrows the cause away from a standard WAF rule and toward another security feature.

_03_Checklist

## How visitors can get past it

First_1_
Take a screenshot of the full error page, including the Ray ID or error code, and send it to the website owner. Cloudflare's guidance for non-owners is to give the owner a screenshot of the 1020 message.

Next_1_
Don't retry in a loop. A block rule that matched once will match again for the same request.

Then_1_
If you run the site and you are the one blocked, see the next section: you can find your own request in the log.

_04_How it works

## How site owners find and fix the cause

Where to change each Cloudflare feature
| Feature | Documented behavior | How to scope the exception |
| WAF custom rules | Block and Managed Challenge actions; Block stops evaluation of other rules | Skip action in a custom rule |
| Browser Integrity Check | On by default; denies requests with commonly abused HTTP headers and challenges visitors with no or unusual [user agent](/glossary/user-agent) | Turn it off for the zone, or skip it with a custom rule, or use a configuration rule for part of the site |
| Security Level | Under Attack mode shows a Managed Challenge page | Use a configuration rule to turn Under Attack mode on or off for an API or other path |

**Don't block Cloudflare's own IPs at the origin**For proxied records your origin receives traffic from Cloudflare IP addresses shared by all proxied hostnames. Cloudflare warns that blocking these IPs, even accidentally, stops visitor traffic reaching your application. Allow Cloudflare's published ranges in your origin firewall.

1. 01

### Get the Ray ID or client IP

Ask the visitor for a screenshot of the error. The Ray ID and the client IP shown on the page are what you search for.
2. 02

### Search Security Events

In the Cloudflare dashboard, open Analytics and select the Events tab. Search for the Ray ID or client IP. Convert the UTC timestamp on the error to your own timezone first, as Cloudflare advises.
3. 03

### Read which feature acted

The event shows which security feature and rule blocked or challenged the request. Cloudflare notes that a single HTTP request can create several security events, and that Free plans see sampled logs only.
4. 04

### Change the narrowest rule

Adjust the rule that fired. Custom rules run in order and a Block action stops evaluation of later rules, so check the order. To exempt one path, use a custom rule with a Skip action, or a configuration rule, rather than turning protection off for the whole zone.
5. 05

### Check the origin if there was no Cloudflare event

If no event exists and the page has no Cloudflare branding, the origin sent the 403. Look at .htaccess, mod_security and IP deny rules, and make sure Cloudflare's IP ranges are not blocked.

_05_Explained

## What it does to SEO

A Cloudflare 403 served to a crawler counts as a 4xx for Google, and Google treats 4xx codes other than 429 the same: the URL is dropped from the index if it was indexed. Google also says 401 and 403 have no effect on crawl rate. If a [bot protection](/glossary/bot-management) rule is blocking a [search crawler](/glossary/web-crawler), those pages can drop out of the index. See [4xx errors](/seo-issues/4xx-errors) and Google's guidance on how status codes affect its crawlers. For the CDN concept see [CDN](/glossary/cdn).

Sources · 7

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- cloudflare.com
- google.com

1. 01 [Error 403 - Cloudflare Support docs](https://developers.cloudflare.com/support/troubleshooting/http-status-codes/4xx-client-error/error-403/) developers.cloudflare.com · checked 2026-10-25
2. 02 [Error 1020 - Cloudflare Support docs](https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1020/) developers.cloudflare.com · checked 2026-10-25
3. 03 [Security Events - Cloudflare WAF docs](https://developers.cloudflare.com/waf/analytics/security-events/) developers.cloudflare.com · checked 2026-10-25
4. 04 [Custom rules - Cloudflare WAF docs](https://developers.cloudflare.com/waf/custom-rules/) developers.cloudflare.com · checked 2026-10-25
5. 05 [Browser Integrity Check - Cloudflare WAF docs](https://developers.cloudflare.com/waf/tools/browser-integrity-check/) developers.cloudflare.com · checked 2026-10-25
6. 06 [Cloudflare IP addresses - Cloudflare Fundamentals docs](https://developers.cloudflare.com/fundamentals/concepts/cloudflare-ip-addresses/) developers.cloudflare.com · checked 2026-10-25
7. 07 [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

Questions

## Asked a lot.

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

_01_ How do I remove a 403 Forbidden from Cloudflare?

Find the event first. Search the Security Events log by Ray ID or client IP to see which feature blocked the request, then change that rule. If the page has no Cloudflare branding, the origin returned it, so check the origin's permission, mod_security and IP deny rules.

_02_ Does Cloudflare error 1020 mean I'm banned?

It means a security rule set by the site owner blocked the request, returned with a 403 status. It is not necessarily a ban of you personally. Send the owner a screenshot so they can find the event.

_03_ How do I stop Cloudflare blocking a legitimate path?

Use a custom rule with a Skip action, or a configuration rule, scoped to that hostname or path. Cloudflare documents this approach for Browser Integrity Check. Avoid disabling a feature for the whole zone.

_04_ Why does my origin block Cloudflare?

Because proxied traffic reaches your origin from Cloudflare IP addresses. A firewall can treat those as a few sources sending high volume. Cloudflare says to make sure its IP ranges are not blocked or [rate limited](/glossary/rate-limiting).

## 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 403 Forbidden in Chrome HTTP status codes](/errors/http/403/chrome) [Do Run a free site audit Free, about two minutes](/site-audit)

Other 403 errors
[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 CloudFront](/errors/http/403/cloudfront) [API Gateway 403 Forbidden](/errors/cdn/api-gateway-403-forbidden)

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) [User agent](/glossary/user-agent) [CDN](/glossary/cdn) [Bot management](/glossary/bot-management) [Web crawler](/glossary/web-crawler) [Rate limiting](/glossary/rate-limiting)

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
