Cloudflare error 1005 "Access denied: Autonomous System Number (ASN) banned" means the website owner blocked the entire network your IP address belongs to. The site is up. Your network is refused. As a visitor, turn off any VPN, proxy, or iCloud Private Relay and retry on another network. If the error stays, send the site owner the Ray ID.
An ASN identifies one network operator, such as an ISP, a mobile carrier, a cloud host, a VPN service, or a proxy provider. Cloudflare maps your IP to its ASN, finds the owner's block rule, and stops the request at its edge. The website's server never sees it.
| You are | First move |
|---|---|
| A visitor | Disable VPN, proxy, or relay. Retry on mobile data. Send the owner a screenshot with the Ray ID. |
| The site owner | Search Security Events for the Ray ID or client IP, then narrow or remove the ASN block in IP Access Rules. |
| Running automation | Stop retrying. Confirm which network is banned and whether the site allows your traffic at all. |

What error 1005 means
Cloudflare's error 1005 page gives one cause. The owner of the website banned the ASN your request came from.
The request path is short:
- You request a page on a site that uses Cloudflare.
- Cloudflare reads your IP address and looks up its ASN.
- The ASN matches a block in the site's IP Access Rules.
- Cloudflare returns error 1005. The origin server never sees the request.
Because the block happens at Cloudflare, the site owner will not find your request in their own server logs. They have to look in Cloudflare Security Events.
Why your network got banned
Owners ban ASNs because one rule covers thousands of addresses. That is fast against abuse and blunt against everyone else on the same network. The usual targets are:
- Cloud and datacenter ASNs, where scripts and scrapers run
- VPN and proxy provider ASNs, especially overused exit servers
- A consumer ISP or mobile carrier that sent a burst of abuse, which catches every normal customer on it
- Relay networks such as the ones behind iCloud Private Relay
The last one surprises people. Apple runs the first hop of Private Relay, and third parties run the exit hop. An APNIC analysis from January 2023 names Akamai, Cloudflare, and Fastly as those exit operators. If a site bans one of those ASNs, Safari users get 1005 without ever installing a VPN.
How to find your ASN
You need your ASN to confirm the block and to explain it to the site owner. Run this from the same device and network that got the error:
curl https://ipinfo.io/json
The org field shows the ASN and the network name, for example "org": "AS64496 Example Telecom". You can also open the same URL in a browser.
If the ASN belongs to a VPN, a cloud host, or a proxy provider, that network is the likely target of the ban. If it belongs to your home ISP or mobile carrier, the owner may have blocked a whole consumer network by mistake. Tell them, because they probably do not know.
Error 1005 vs. other Cloudflare access errors
Several Cloudflare blocks look alike. The code tells you which rule fired, and that tells the owner where to look. Descriptions below follow Cloudflare's 1xxx error list as of October 2026.
| Error | What blocked you | Where the owner looks |
|---|---|---|
| 1005 | A ban on your network's ASN | IP Access Rules, Security Events |
| 1006, 1007, 1008 | A ban on your IP address | IP Access Rules, Security Events |
| 1009 | A ban on your country or region | IP Access Rules (country blocks need Enterprise) |
| 1010 | Your browser's signature | Security Events |
| 1015 | A rate limiting rule | Rate limiting rules |
| 1020 | A Block rule with no custom response, such as API Shield schema or JWT validation | Security Events, matched rule |
| WAF block page, no 1xxx code | A WAF custom or managed rule | Security Events, matched rule |
One detail matters for owners. Cloudflare's 1020 page, updated October 14, 2026, says requests blocked by WAF custom rules or managed rules get the WAF block response, not a 1020. So an ASN ban written as a custom rule shows visitors the WAF block page. A visitor who sees "Error 1005" is almost always hitting an IP Access Rule.
If the page has no Cloudflare code at all, the denial may come from the origin app. Work through the HTTP 403 Forbidden guide instead.
How to fix error 1005 as a visitor
You cannot remove an ASN ban yourself. The site owner controls the rule. You can test whether your network is the cause:
- Turn off any VPN, proxy, or privacy relay. On iPhone, check Settings for iCloud Private Relay and any VPN profile.
- Load the page from another network, for example mobile data instead of office Wi-Fi.
- If the page loads on the other network, your first network's ASN is banned.
- If you need access from the blocked network, contact the site owner.
Send the owner:
- A screenshot of the error 1005 page with the Ray ID
- The URL and the time, with your timezone
- Your ASN and network name from the
ipinfo.iocheck - Whether you used a VPN, proxy, or work network
Do not refresh many times. The block will not change, and repeated requests make the owner's logs harder to read.
Fixes that do not work for 1005
Many guides tell you to clear cookies, flush DNS, switch to 8.8.8.8, reset the browser, or fix your system clock. Those steps target other problems. Error 1005 depends only on the network your IP belongs to, and none of them change your IP or its ASN.
Changing DNS can look like it worked if you also switched networks or turned off a VPN at the same time. Test one change at a time.
How to fix error 1005 as a website owner
Cloudflare's documented steps are:
- Get the screenshot of the 1005 error from the visitor.
- Search the Security Events log for the Ray ID or client IP. The error page shows a UTC timestamp, so convert it to your timezone first. Depending on your dashboard version, the log is under Security > Events or on the Analytics page, Events tab.
- Find the rule that blocked the request and decide whether the ASN should be allowed in your IP Access Rules.
On the Free plan, Security Events shows sampled logs, so a single request can be missing. Search by the client IP and a time window if the Ray ID returns nothing.
If the ASN block is too broad, change it:
- Remove the block if the ASN is a normal ISP or mobile carrier.
- Change the action from Block to a challenge if you are not sure the traffic is abuse.
- Block only the specific IPs or ranges that sent the abuse.
- Limit the rule to the paths that need protection, such as login or checkout.
Be careful with the opposite fix. Cloudflare's IP Access Rules documentation says allowing an IP or ASN bypasses your custom rules, rate limiting, and WAF managed rules. Removing the block is usually safer than adding an allow rule for a whole network.
Move the ASN rule into a scoped custom rule
The same documentation says Cloudflare recommends custom rules over IP Access Rules. A custom rule can match the ASN together with other fields, so you can protect one path without banning the network site-wide:
(ip.src.asnum eq 64496 and http.request.uri.path eq "/checkout")
Replace 64496 with the ASN from Security Events. Remember that visitors blocked by this rule see the WAF block page, not error 1005, so update any support macros that tell people to look for the 1005 code.
Error 1005 in scraping and automation
For scraping, price monitoring, and retail or ticketing bots, error 1005 means the target does not trust the network that carries your traffic. Common examples are cheap datacenter ranges, overused VPN exits, and abused public proxy pools. On a drop or an onsale, one banned ASN kills every task on that network at once. The residential sneaker proxy setup guide explains how to spread subnet and ASN risk across a bot setup.
Before you change networks, check:
- Does the site allow your use case in its terms?
- Does the same request work from a normal browser on a home connection?
- Does only one provider network fail, or do all networks fail?
- Are you sending bursts or tight retry loops from one ASN?
If only one network fails, the ASN ban is the trigger. If every network fails, the cause is more likely your request pattern or a broader rule, and you will often see a WAF block page, 1020, or 1015 instead.

Detect 1005 in the response body
Do not trust the status code alone. In FlareSolverr issue #1574 (September 2025), version 3.4.0 returned "status": "ok" and an embedded HTTP 200 for a page that said "Error 1005, Access denied". The page title had the site's domain appended, which broke an exact-match "Access denied" check. The fix switched it to a prefix match.
Check the body and keep the Ray ID so you can log it per network:
import requests
resp = requests.get("https://example.com/", timeout=15)
body = resp.text
if "1005" in body and "Access denied" in body:
print(
f"ASN ban: status={resp.status_code} "
f"ray={resp.headers.get('cf-ray')}"
)
# Stop this network. Do not retry from the same ASN.
Log the exit ASN next to each block. After a day you will see which network fails on which target, which tells you more than any single error page.
When proxies help with error 1005
A different network helps only when the site bans the ASN you use now and allows your activity. Moving from a banned datacenter ASN to an ISP or residential network changes the ASN that Cloudflare sees.
ISP proxies give static IPs that suit long sessions on one account, such as a retail account that should keep one address through checkout. Residential proxies give rotating or sticky IPs on consumer networks, which suits broad monitoring and geo testing. The ISP vs residential comparison covers which fits which job.
A new network does not fix a block on your activity itself, missing permission, or rules that block every proxy. If the owner bans your behavior, changing IPs is not the fix. Slow down and follow how to crawl a website without getting blocked before you scale.
How to prevent error 1005
For site owners:
- Block a full ASN only when the abuse clearly comes from that network.
- Prefer scoped custom rules by path, rate, or behavior.
- Use a challenge action when the signal is uncertain.
- Review Security Events before you add a new ASN block.
- Publish a contact path for users who get blocked.
For automation teams:
- Spread traffic across more than one network.
- Keep request rates low and back off after an access error.
- Log blocks by ASN and endpoint, so you can see which network fails.
FAQ
What does error 1005 access denied mean?
It means Cloudflare blocked your request because the website owner banned the ASN of your network. The block covers every IP on that network, not only yours.
Why am I getting error 1005 without a VPN?
Your ISP or mobile carrier may be the banned network, often because other customers on it sent abuse. iCloud Private Relay can also trigger it, because its exit traffic runs through third-party networks that some sites ban.
How do I fix error 1005 on iPhone or Android?
Turn off any VPN app, VPN profile, or iCloud Private Relay, then switch between Wi-Fi and mobile data. If the page loads on one and not the other, the first network's ASN is banned and only the site owner can lift it.
Does clearing cookies or changing DNS fix error 1005?
No. Error 1005 depends only on the network your IP belongs to. Cookies, cache, DNS servers, extensions, and the system clock do not change that.
How long does an error 1005 ban last?
Cloudflare's documentation describes no timeout for it. The block lasts as long as the owner's rule exists, so waiting rarely helps and contacting the owner does.
What is the difference between error 1005 and error 1010?
Error 1005 blocks your network by ASN. Error 1010 blocks your browser's signature, so it can follow you across networks.
Can I fix error 1005 by changing proxies?
Sometimes. It works only if the banned ASN belongs to the proxy or VPN you use and the site allows your activity. If the site blocks your activity on purpose, a new IP is not the real fix.
Final thoughts
Error 1005 is a network decision, so the fix is a network change or an owner change. Visitors should test one other network and then send the Ray ID instead of clearing caches. Owners should scope ASN bans to the paths under attack and remember that custom-rule blocks no longer show 1005. Automation teams should detect the block in the body, stop the affected network, and log failures by ASN.