← Back to all articles

Cloudflare Error 1020 Access Denied: Meaning and Fix

by Unknown Proxies

11 min read

Updated October 17, 2026

Cloudflare error 1020 "Access denied" means a security rule the website owner set up matched your request, and Cloudflare blocked it at its edge. Visitors see it in the browser. Site owners find the rule in Security Events. The first fix for a visitor is to turn off the VPN or proxy, reload, and send the owner the Ray ID if it persists.

Cloudflare's documentation says the cause is "a security rule with a Block action" that has no custom response, and that API Shield schema validation and JWT validation can block requests this way. The page is served with HTTP status 403 Forbidden. The same docs page says requests blocked by WAF custom rules or WAF managed rules get the standard WAF block response instead of a 1020. Older guides, including earlier versions of this one, called 1020 a "firewall rule" error, so you will still see that wording around.

The site is not down. The block applies to your request: your IP address, country, network, browser, or request pattern. Only the site owner can change the rule.

Diagram showing a Cloudflare firewall rule denying a request before it reaches the origin server

Quick fix for Cloudflare error 1020

Situation What to do
You are a normal visitor Turn off your VPN or proxy, try another browser with extensions disabled, then send the owner a screenshot with the Ray ID
You use a VPN Disconnect it or switch to a different server. Many sites block VPN networks or countries
You own the website Search Security > Analytics > Events for the Ray ID or client IP, then narrow the rule that fired
You run a scraper or monitor Compare your request with a real browser request. Fix headers, cookies, and rate first, then test other IPs
Every request fails from everywhere The site may block your use case on purpose. Check that you are allowed to access it

Waiting does not usually fix 1020. If the block goes away after a few minutes, you were probably rate limited, which is Cloudflare error 1015.

If you are not sure which code you have, compare the block page with Cloudflare's 1xxx error list. It describes 1020 as a generic access refusal, 1010 as a browser signature block, 1006 to 1008 as an IP block, and 1009 as a country or region block.

What is Cloudflare error 1020?

Error 1020 is the page Cloudflare shows when a site's security rule uses the Block action, has no custom response, and your request matches it. The page shows:

The Ray ID matters most. The site owner can use it to find the exact blocked request and the rule that matched.

Why error 1020 happens

A security rule can match many request fields. These are the conditions owners use most:

For normal visitors, 1020 is often a false positive: a VPN exit in a blocked country, or a privacy extension that strips headers. For scrapers, it usually means the request does not look like the client it claims to be.

Owners can also replace the default 1020 page with their own. Cloudflare documents a custom error rule for 1020 errors, so a branded page that says something different is still the same block.

Error code 1020 with a VPN

VPNs are the most common reason normal visitors see 1020. Site owners often block:

To fix it, disconnect the VPN and reload. If you need the VPN, switch to a server in your own country or try a different provider's server. If the site still blocks you without a VPN, contact the owner.

Error 1020 vs. error 1005 vs. HTTP 403

Error What blocked you Where to look
Error 1020 A Cloudflare custom rule set by the owner The rule that matched in Security Events
Error 1005 The owner banned your network's ASN IP Access Rules or ASN conditions
Error 1010 The owner blocked your browser signature Client fingerprint and headers
HTTP 403 Forbidden without a Cloudflare page The website server or app refused the request Origin app, login, permissions, or origin WAF
Error 1015 A Cloudflare rate limiting rule Request rate, and wait for the block to expire

Error 1020 and 1005 both happen at Cloudflare's edge. A plain 403 page without Cloudflare branding usually comes from the origin. If you are not sure which layer blocks you, the proxy vs firewall comparison shows how to separate a local proxy problem from a destination firewall decision.

How to fix error 1020 as a visitor

  1. Turn off your VPN or proxy and reload.
  2. Disable browser extensions that change headers, block scripts, or spoof your User-Agent. Then reload.
  3. Try a different browser or a private window.
  4. Try a different network, such as mobile data instead of office Wi-Fi.
  5. Check that the rest of the site loads. If only one page or one login fails, the rule targets that path.
  6. Clear cookies and cached data for the site and make sure cookies are on. Corrupted cookies cause some 1020 blocks, and a site's login page is a common place to see one.
  7. Send the site owner a screenshot of the error page, including the Ray ID and time.

Cloudflare support cannot unblock you. The owner controls the rule.

How to fix error 1020 as a site owner

These steps follow Cloudflare's error 1020 documentation.

  1. Ask the visitor for a screenshot of the error page.
  2. In the Cloudflare dashboard, open the domain and go to Security > Analytics, then the Events tab (shown as Security > Events on some dashboards).
  3. Filter by the Ray ID or client IP. Convert the UTC time on the error page to your local time if you search by time.
  4. Open the event. It shows the feature and rule that blocked the request, and the matched fields.
  5. Fix that configuration, or allow the visitor's IP with an IP Access Rule.

If you are on managed hosting and do not have your own Cloudflare account, you cannot see Security Events. Send your host the Ray ID, the timestamp, and the steps that led to the error. Kinsta's error 1020 guide lists the same three details.

Good fixes are narrow:

Do not turn off a rule site-wide before you know why it fired. If the event's Service field says Bot Fight Mode instead of a rule name, the visitor got a challenge rather than a 1020, and no custom rule can exempt them. The guide to Cloudflare Bot Fight Mode covers the options that do work on each plan.

How to fix error 1020 when scraping

For scrapers and monitors, 1020 means a rule matched your request. Rotating IPs straight away often hides the real cause.

  1. Confirm the target allows your use case and that you follow its terms.
  2. Capture a working request from a real browser and the failing request from your client. The HAR analyzer helps you compare headers, cookies, and redirects side by side.
  3. Make the headers match the client you claim to be. A Chrome User-Agent with missing Accept-Language or Sec-Fetch-* headers is easy to flag. Our guide to web scraping headers lists what real browsers send.
  4. Keep cookies and sessions between requests instead of starting fresh each time.
  5. Lower your rate, add jitter, and stop instant retries after a block.
  6. Then test IPs. Send the same request through two or three proxy types. If one network fails and another passes, IP reputation or ASN is part of the rule.

If the same request works from your home connection but fails through your proxy, the proxy network is likely flagged. If it fails from every network, fix the request itself.

Troubleshooting tree for isolating the cause of Cloudflare Error 1020 in scraping workflows

Ticketing and retail sign-ins

On ticketing and retail sites, 1020 most often shows up at sign-in, cart, and checkout, because owners protect those paths hardest. A ticket vendor's own help page tells customers to enable cookies, clear cached data, disable extensions that block cookies, and try another device or browser. That is the right first pass for a person.

For accounts you manage with software, the problem is usually inconsistency. A login from one IP, a cart request from another, and a checkout from a third looks like three different people. Keep one IP and one header set for each account session, and keep browsing and monitoring on separate IPs from the ones that hold logins.

When proxies help with error 1020

Proxies help only when the rule uses IP signals: a blocked country, a blocked hosting ASN, or poor IP reputation. They do not help when the rule matches your headers, path, or bot score.

Proxy type Helps when Tradeoff
Residential proxies The rule blocks hosting ASNs or needs a specific country Usually priced by bandwidth, and slower than ISP proxies
ISP proxies You need stable, fast IPs for sessions and retail monitoring Fewer IPs to rotate than a residential pool
Datacenter proxies The site does not filter hosting networks Often the first thing a 1020 rule blocks

Test with a small controlled run. Keep the URL, headers, cookies, rate, and session logic the same, and change only the proxy pool. That tells you whether the IP is the trigger.

How to prevent error 1020 in automation

For retail and drop monitoring, the delay calculator helps you size the proxy list to your delay, so each IP sends fewer requests.

FAQ

What does Cloudflare error 1020 access denied mean?

It means a security rule with a Block action, set by the site owner, matched your request, and Cloudflare blocked it before it reached the site. The response is HTTP 403.

Why do I get error code 1020 with a VPN?

The site likely blocks the VPN's country, its network (ASN), or its IP reputation. Disconnect the VPN or pick a server in your own country.

Does error 1020 go away by itself?

Usually not. The rule stays until the owner changes it. It only clears if something about your request changes, such as your IP, country, or browser.

Why do I get error 1020 on one device but not another?

The rule is matching something that differs between the two, usually the network, the IP address, or the browser. A different cookie jar, extension, or VPN setting can also do it. Compare the two setups one change at a time.

Is error 1020 caused by my proxy?

Sometimes. If the same request works without the proxy and fails through it, the proxy's IP reputation, ASN, or location probably matches the rule.

Can I fix error 1020 by changing my User-Agent?

Only if the rule matches the User-Agent or a mismatched browser profile. The user agent checker shows what your client sends. If the rule matches your IP or country, a new User-Agent changes nothing.

What is a Cloudflare Ray ID?

A Ray ID is a unique ID that Cloudflare gives each request. The site owner searches for it in Security Events to find the blocked request and the rule behind it.

Final thoughts

Error 1020 is a deliberate block by the site owner, not an outage. Visitors should drop the VPN and send the Ray ID to the owner. Owners should find the event in Security Events and narrow the rule. Scrapers should fix the request first and test IPs second.

Technical references: Cloudflare error 1020 documentation and Cloudflare 1xxx errors.

Need clean IPs for this setup?

Static ISP proxies for steady sessions and rotating residential pools when you need fresh exits, backed by a live site list and support on Discord.

View pricing