Cloudflare Error 1020: Access denied

Cloudflare decided this request is not allowed — a firewall rule, WAF custom rule, IP/country block, or Access policy stopped it at the edge, so your origin never saw it.

What visitors see

Error 1020
Access denied

The owner of this website has banned your access based on
your browser's apparent characteristics or your IP address.

Cloudflare Ray ID: …

Copy the Ray ID. It is the fastest way to find the exact rule in the Cloudflare dashboard.

1020 vs 1015 vs 403 vs 1014

SymptomWho blocked itTypical cause
Error 1020Cloudflare Firewall / WAF / AccessCustom rule, IP/country/ASN block, Bot Fight, Access app policy
Error 1015 / rate limitCloudflare rate limitingToo many requests from an IP or path; often “You are being rate limited”
HTTP 403 from originYour app / nginxApp authz, deny, missing host — origin did respond
Error 1014Cloudflare CNAME setupCNAME cross-user / banned configuration (setup), not a visitor ban
Error 1016Origin DNSCannot resolve origin — not an access policy

Rule of thumb: 1020 = “Cloudflare’s security layer said no.” Fix the matching rule or the client identity — opening origin ports will not help a request the edge never forwards.

Frequent real causes

Diagnose with the Ray ID

  1. Open Cloudflare → Security → Events (or Firewall → Events).
  2. Search / filter by the Ray ID from the error page.
  3. Read service, action (block / challenge), and rule name / rule ID.
  4. Confirm whether the client IP, country, JA3/bot score, path, or Access policy matched.
  5. If you cannot find the Ray ID, widen the time range and filter by the hostname + client IP.

Fixes that usually work

What not to do

# From a blocked client, capture the Ray ID from HTML or headers:
curl -sI https://www.example.com/ | tr -d '\r' | grep -i cf-ray

# Compare from a known-good network / IP to see if the block is IP-based.

Related

Cloudflare Error 1010 · Cloudflare Error 1006 to 1009 · All Cloudflare error codes · Cloudflare Error 1016 · HTTP 429 / rate limiting · HTTP 401 vs 403 · ERR_BLOCKED_BY_CLIENT · Cloudflare Error 523 · CSRF token missing · Anvil HTTP status · Wirebook status-code lesson

Questions

What does Cloudflare Error 1020 mean?

A Cloudflare firewall, WAF, bot, or Access policy blocked the request at the edge — the origin never handled it.

How do I find which rule blocked me?

Copy the Ray ID from the error page and search Security → Events (Firewall Events) for that Ray ID to see the rule name and action.

Is Error 1020 the same as HTTP 403?

No. A 403 from your origin means the app answered. 1020 is Cloudflare refusing before the origin.

Can Bot Fight Mode cause 1020?

Yes. Aggressive bot modes can block or challenge scripted clients, datacenter IPs, and some browsers — check Events for the bot service.

Why am I blocked but a coworker is not?

Different client IPs, countries, ASNs, or bot scores. Compare both Ray IDs in Events.

Does pausing Cloudflare fix 1020?

It bypasses the block but also every other edge control. Prefer adjusting the matching rule or adding a narrow allow.

Can Cloudflare Access show as 1020?

Access denials are policy blocks at the edge. Check Access audit/logs as well as Firewall Events for the Ray ID.

Published · updated .

Try it

Related guides

Newest guides