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.
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.
Where does your site stand?
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
- Free audit in 60 seconds
- Fixes drafted for your review
- ChatGPT, Perplexity, Gemini and AI Overviews tracked
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
- Re-check after big site changes
- Keep this page for reference
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
- Follow the steps below
- Top-traffic pages first
- Check again in a month
Is the 403 from Cloudflare or from your origin?
| 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.
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.
How visitors can get past it
How site owners find and fix the cause
| 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 | 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 |
- 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.
- 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.
- 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.
- 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.
- 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.
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.
Every fact, linked and dated.
cloudflare.com
google.com
- 01Error 403 - Cloudflare Support docsdevelopers.cloudflare.com · checked 2026-10-25
- 02Error 1020 - Cloudflare Support docsdevelopers.cloudflare.com · checked 2026-10-25
- 03Security Events - Cloudflare WAF docsdevelopers.cloudflare.com · checked 2026-10-25
- 04Custom rules - Cloudflare WAF docsdevelopers.cloudflare.com · checked 2026-10-25
- 05Browser Integrity Check - Cloudflare WAF docsdevelopers.cloudflare.com · checked 2026-10-25
- 06Cloudflare IP addresses - Cloudflare Fundamentals docsdevelopers.cloudflare.com · checked 2026-10-25
- 07How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
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.
Tools point. Agencies advise. This one ships.
Run the free audit, then approve the fixes. Every change can be undone.
- 46 fixes shipped without a ticket Brightpipe
- 0→7 ChatGPT citations in six weeks Paylane