Free auditStart free
GuideError · HTTP status codes

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.

5 min
read
7
sources
Oct 21, 2026
updated
Scaplet Editorial Team
author
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?
  2. What error 1020 means
  3. How visitors can get past it
  4. How site owners find and fix the cause
  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
01Good 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
WhereCauseHow to confirm
OriginPermission rules on the origin web server, such as an Apache .htaccess filePage has no Cloudflare branding; origin logs show the request
Originmod_security rulesSame; check the origin's security module logs
OriginIP deny rules that block Cloudflare's IP rangesOrigin sees Cloudflare addresses, not visitor IPs
CloudflareWAF custom or managed rules with a block or challenge actionSecurity Events shows the rule
CloudflareSecurity Level (default Medium)Security Events shows the feature
CloudflareDDoS protection, on by default for zones onboarded to CloudflareSecurity Events
CloudflareBrowser Integrity CheckSecurity Events; common with missing or unusual user agents
CloudflareA 1xxx error code, for example 1020 (most 1xxx codes can come with a 403)Error code shown on the page
CloudflareSNI mismatch: the client sends a host that does not match the SNIUnstyled 403 that is not logged

These rows come from Cloudflare's 403 documentation. For the status itself, see 403 Forbidden.

02Explained

What error 1020 means

Cloudflare returns error 1020 (Access denied) with an HTTP 403 status code. 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.

03Checklist

How visitors can get past it

First1
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.
Next1
Don't retry in a loop. A block rule that matched once will match again for the same request.
Then1
If you run the site and you are the one blocked, see the next section: you can find your own request in the log.
04How it works

How site owners find and fix the cause

Where to change each Cloudflare feature
FeatureDocumented behaviorHow to scope the exception
WAF custom rulesBlock and Managed Challenge actions; Block stops evaluation of other rulesSkip action in a custom rule
Browser Integrity CheckOn by default; denies requests with commonly abused HTTP headers and challenges visitors with no or unusual user agentTurn it off for the zone, or skip it with a custom rule, or use a configuration rule for part of the site
Security LevelUnder Attack mode shows a Managed Challenge pageUse a configuration rule to turn Under Attack mode on or off for an API or other path
  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.

05Explained

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 rule is blocking a search crawler, those pages can drop out of the index. See 4xx errors and Google's guidance on how status codes affect its crawlers. For the CDN concept see 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. 01Error 403 - Cloudflare Support docsdevelopers.cloudflare.com · checked 2026-10-25
  2. 02Error 1020 - Cloudflare Support docsdevelopers.cloudflare.com · checked 2026-10-25
  3. 03Security Events - Cloudflare WAF docsdevelopers.cloudflare.com · checked 2026-10-25
  4. 04Custom rules - Cloudflare WAF docsdevelopers.cloudflare.com · checked 2026-10-25
  5. 05Browser Integrity Check - Cloudflare WAF docsdevelopers.cloudflare.com · checked 2026-10-25
  6. 06Cloudflare IP addresses - Cloudflare Fundamentals docsdevelopers.cloudflare.com · checked 2026-10-25
  7. 07How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Questions

Asked a lot.

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

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

02Does 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.

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

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

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