NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Cloudflare

Cloudflare error 1020: Access Denied

Error 1020 is Cloudflare telling you that the site owner's firewall rules matched your request and the rule says block. It is a policy decision, not a puzzle, and that shapes everything you can do about it.

What error 1020 means

The page reads "Access denied" with "Error code 1020" and a Ray ID, and the HTTP status is 403. Cloudflare's documentation describes it as a request that violated a firewall rule the site owner configured. The important word is "owner": Cloudflare did not decide on its own that you look suspicious. Someone who runs the site wrote a rule, and your request matched it.

That rule can be broad or narrow. It might block a whole country, a range of hosting provider IPs, requests to a specific path, a list of user agents, or traffic that Cloudflare's bot score rates as automated. It might also be a mistake: owners sometimes write rules that catch more than they intended, including ordinary visitors.

How it differs from a challenge

Cloudflare rules can take different actions when they match. "Managed challenge" and "JS challenge" show an interstitial that a real browser can pass, after which it receives a clearance cookie. "Block" shows the 1020 page and ends there. There is no script to run, no widget to answer and no cookie to earn. A CAPTCHA solver has nothing to work with, because there is no CAPTCHA.

So if you are looking at 1020, solving is not the answer, and no service can honestly promise to get you past it. The useful questions are why the rule matched and whether the match was incidental or intentional. The guide on how to tell Cloudflare protections apart helps make sure it really is 1020 and not a challenge page.

Fields a rule can match on

Cloudflare's rule language can look at a lot of request properties. The ones most likely to catch automated traffic:

  • IP address and ASN. Blocking known hosting networks is common, because few ordinary visitors browse from a cloud server.
  • Country. Sites that serve one market sometimes block everything else.
  • User agent. Rules that block strings containing python-requests, curl, Go-http-client or empty user agents.
  • Path and method. For example blocking direct requests to /api/ endpoints or unusual methods.
  • Headers. Missing Accept-Language, unusual Referer values or other gaps that browsers do not leave.
  • Bot score and verified bot status. On plans with bot management, rules can block requests scored as likely automated.
  • Threat score and reputation lists. Addresses Cloudflare has seen in attacks.

What a client can change

If the rule matched something incidental about your setup, rather than your purpose, adjusting that thing may mean the rule no longer applies:

  • Library user agents. If your HTTP client announces itself as a library, rules targeting those strings will match. Use a realistic, current browser string and keep the rest of the request consistent with it.
  • Missing browser headers. Send what a browser sends: Accept, Accept-Language, and the encodings you support.
  • Hosting provider IPs. If the rule targets data center networks, requests from residential or mobile networks will not match it. The entries on ASNs and residential proxies explain the background.
  • Country. If the site only serves one region, requests from that region are what it expects.

These adjustments make your requests look like the visitors the site is willing to serve. They are reasonable when your use is legitimate and the rule was aimed at something else, such as abusive crawlers.

What a client cannot change

Some rules are aimed squarely at what you are doing. If a site blocks all automated access to its listings, or blocks your specific IPs after noticing your traffic, then making the requests look different is working against an explicit decision by the owner. That is not something we help with or recommend, and it tends to fail anyway: owners who care enough to write targeted rules also notice when traffic changes shape to avoid them.

Nor can a client see the rules. Cloudflare does not reveal which rule matched; only the owner can look up the Ray ID in their dashboard. Anything you change is a guess about the rule, which is another reason to keep experiments small and stop when the answer is clearly "no".

When you are an ordinary visitor

People see 1020 in normal browsing too, usually because of a VPN exit, a corporate network or a browser extension that changes headers. Turning off the VPN, trying another network or disabling extensions often resolves it. If not, contacting the site with the Ray ID shown on the page lets the owner find the rule that matched. That Ray ID is the single most useful thing to include in such a message.

The legitimate routes to access

If you need data from a site that blocks automated access with 1020, the durable options are outside your code:

  • An official API. Many sites that block scraping offer an API for the same data, sometimes free for modest use.
  • A partnership or data agreement. For commercial use, asking is often faster than engineering around blocks.
  • Allow listing. If you run monitoring for the site owner, they can add your IPs or a header to an allow rule.
  • Another source. The same public information is often available elsewhere without restrictions.

Checking your own site

If you own the site and your own monitoring or test traffic gets 1020, open Security Events in the Cloudflare dashboard, filter by the Ray ID or your IP, and see which rule matched. Add a skip rule for your monitoring traffic, ideally matching a secret header rather than an IP that might change. That is far more reliable than trying to make test traffic slip past your own rules.

Where solving does help

Cloudflare protections that are meant to be passed include the managed challenge page and the Turnstile widget. Those are where a solving API fits: the Cloudflare Challenge task returns a clearance cookie for challenge pages, and the Turnstile task returns a token for widgets in forms. If your logs show a mix of 1020 and challenge pages, handle the challenges, slow the traffic, and treat the 1020s as a signal that some of your requests are crossing a line the owner drew. The article on Cloudflare 403 errors places 1020 among the other causes.

Common questions

What does Cloudflare error 1020 mean?

A firewall rule configured by the site owner matched the request and its action was to block.

Can a CAPTCHA solver get past error 1020?

No. There is no challenge on a 1020 page. It is a block by policy, and no token or cookie changes it.

Why do I get 1020 in a normal browser?

Often a VPN, a corporate network or an extension that changes headers. Try another network, or contact the site with the Ray ID.

Can I find out which rule blocked me?

Only the site owner can, by looking up the Ray ID in their Cloudflare dashboard.

Is changing my user agent enough?

Only if the rule targeted library user agents. Rules on IPs, countries or your behaviour will still match.

Keep reading