Cloudflare error 1005: your network's ASN is banned
Error 1005 means the owner of the website has banned an autonomous system number (ASN): the whole network your IP address belongs to, not your address alone. Through a proxy, the banned network is the one your exit is on. Cloudflare returns it with HTTP 403, and only the site owner can lift it.
Reviewed by John Hale. Last updated .
What it looks like
Error 1005
Access Denied: Autonomous System Number (ASN) bannedHTTP/2 403
server: cloudflare
cf-ray: ...What does error 1005 mean?
An autonomous system is a network run by one operator, such as an internet provider, a mobile carrier or a hosting company, and its number identifies it in internet routing. Cloudflare's documentation gives one cause for 1005: the owner of the website banned the ASN from accessing it.
Cloudflare lets a site owner block, challenge or allow traffic by IP address, by country or by ASN. An ASN rule is the broad one: it refuses every address of that operator at once. Owners mostly use it against hosting and cloud networks, where they expect servers rather than people.
What causes error 1005 through a proxy?
Most likely first.
- The exit is on a hosting network. Datacenter proxies and many VPNs leave from cloud and hosting ASNs, the networks owners ban most often.
- The owner banned a consumer network. Some sites ban a specific provider or carrier after abuse from it. Every customer of that provider sees 1005, with or without a proxy.
- Your own connection, not the proxy. If the proxy setting did not apply, the request left from your office, cloud server or VPN, and that network is the one that was refused.
How do you see which network was banned?
Confirm the code and keep the Ray ID
The 1XXX code is in the page body, with the Ray ID that identifies this one request. The site owner can find the rule that blocked you by that ID.
Status, sender and codecurl -s -o body.html -D - -x http://HOST:PORT -U "USER:PASS" https://TARGET/ | grep -iE "^HTTP/|^server:|^cf-ray:" grep -oiE "error code: [0-9]{4}|error [0-9]{4}" body.html | head -1Look up the exit's network
The IP type checker shows the network, its ASN and whether the address is in a datacenter or VPN range. Check the exit's address and your own to see which one the site met.
Check that the proxy was used at all
Compare the address a test page sees with and without the proxy. The IP leak test does this in a browser profile.
What can you do about error 1005?
Ask the site owner
This is Cloudflare's own resolution for visitors: send the owner the error with its Ray ID. They can see the rule in their Security Events log and allow your network or address. Cloudflare support cannot override a customer's rule.
Use a connection the site accepts for what you are allowed to do
Read the site's terms first: a different exit does not make a refused request permitted. Where your access is allowed and the ban is on hosting networks, an exit on a home internet provider is on a different ASN.
If the site is yours
Search the Security Events log for the Ray ID or the visitor's IP, find the rule, and check IP Access Rules for the ASN. Prefer a challenge or a narrower rule to an ASN block when real customers share the network.
If you use TrueProxies
Error 1005 arrives inside the tunnel, so it is the website's decision about the network your exit is on. The gateway's own refusals are 407 with a reason, never a Cloudflare page.
Residential and Static ISP exits are on internet provider networks, not hosting ones. Residential IPv4 Standard and Premium, and Unlimited Standard, can also pin a request to one ASN.
That changes which network the site sees. It does not change the site's rules, and under the acceptable use policy you are responsible for following the terms of every site you reach through the service.
Test the proxy from outside your network
The free proxy checker connects from our servers and reports the failed stage as a code, so you can tell a proxy problem from one on your computer or network.
Questions about Error 1005: Access denied (ASN banned)
What is error 1005?
A Cloudflare error that means the website's owner banned the autonomous system number, the network, that your IP address belongs to. It comes with HTTP status 403.
What is an ASN?
An autonomous system number identifies one operator's network on the internet: an internet provider, a mobile carrier, a company or a hosting provider. Every public IP address belongs to one.
Is error 1005 about my IP address?
Not yours alone. The rule matches the whole network, so every address of that operator is refused. A ban on one address is error 1006.
Can Cloudflare remove error 1005 for me?
No. The site owner set the rule, and Cloudflare says its support cannot override a customer's security settings. Contact the owner.
Related errors
Error 1006: Access denied (IP banned)
The site owner banned this IP address. Also covers 1007, 1008 and 1106, which mean the same.
Error 1009: Access denied (country or region banned)
The site owner does not serve the country your request came from. How to check where your exit really is.
403 Forbidden through a proxy
Usually the website's refusal after the tunnel opened; sometimes the proxy refusing the destination.
The proxy checker error codes page maps each checker code to the stage that failed, and proxy errors explained covers timeouts and slow connections.