Cloudflare Error 1020: Access Denied
The request matched an access rule set by the site owner: by country, address, network type or kind of request.
Updated · Prokso editorial team
- Cloudflare shows 1020 when a request breaks an access rule set by the site owner
- Most often the site is closed to your country or to this network type
- Choose a country the site is intended for and try a different address
What the error means
Error 1020 is shown by Cloudflare when a request breaks a rule of the site's firewall. The rules are written by the owner: who to let in and who not.
Unlike 1015, this is not about the rate. The rule triggers on the first request and is not lifted by a pause until the thing it reacts to changes.
Causes
- The site is closed to your country. The owner only lets in visitors from certain countries.
- The site does not accept addresses of this network type. For example, datacenter addresses.
- The request does not look like a browser request. An unusual User-Agent, missing standard headers, cookies or JavaScript turned off.
- The address or subnet is on the site's deny list. Unwanted activity came from them earlier.
- A particular section of the site is closed. The control panel, service URLs and the like.
How to fix it
- Choose a country the site is intended for.
- Try another address: turn on rotation or change the session.
- Try another address type - residential or mobile - on a small volume.
- Check the request headers: they should match a regular browser, with cookies enabled.
- Check that the browser does not reveal your real address: WebRTC leak test.
- If you need access for work, write to the site owner: the error contains a Ray ID that lets them find the cause.
How to check that it works
Open the site in a regular browser through the proxy. If it opens in the browser but not in the program, the cause is how the program builds the request.
Two-minute diagnosis
First paste the line into the proxy checker. If the proxy works there, the cause is in your app or its settings. If not, test the line from a terminal:
curl -v -x "http://USERNAME:PASSWORD@gw.prokso.com:823" https://api.ipify.org
- A
< HTTP/1.1 407line right afterCONNECTmeans the proxy answered. The name after the code, for exampleNO_USER, points to the cause. - The proxy answered
CONNECTwith 200 and then another code arrived - the proxy works, and that answer came from the website. - No answer at all, only a timeout - the connection never reached the proxy: check the host, port and network.
FAQ
Do you guarantee access to sites behind Cloudflare?
No. Access rules are set by the site owner, and we have no influence over them. We do not promise that a particular site will accept an address.
What is the Ray ID in the error text?
It is the request number in Cloudflare's log. The site owner needs it to find which rule triggered.
Will simply waiting help?
Usually not: the rule does not depend on time. You need to change what it reacts to - the country, the address or the kind of request.
What does Error 1020 Access Denied mean?
The site runs through Cloudflare, and the request matched a firewall rule set by the site owner. Cloudflare only enforces that rule. Which rule fired can be found by the owner using the Ray ID from the error page.
How is 1020 different from 1015 and 1010?
1015 is a rate limit: too many requests, the restriction is temporary. 1010 means the owner banned access based on the browser signature, that is, on how the program identifies itself. 1020 means the site's own rule fired: by country, network, address or section of the site. Details: Cloudflare 1015, Cloudflare 1010.
Why do I get 1020 only through the proxy, while the site opens without it?
The owner's rule reacts to something in the request through the proxy: the address country, the network type (for example, a datacenter) or a specific address. Without the proxy the request has other traits and the rule does not fire. If the site is meant for a certain country, choose that country. If the owner closed access on purpose, respect that decision or write to the owner with the Ray ID.
Other proxy errors
Residential $1.59, mobile $2.50, datacenter $0.65 per GB
Sign up in a minute, get access right after payment.