Cloudflare Error 1006, 1007, 1008: Why Your IP Is Banned

Published:

15 minute read

Acar Diveroli
Written by: Acar Diveroli
Three users, one in blue marked YOU, meet in a single shared IP; its line to the site stops at a red rule bar

You open a link to a forum thread or an online shop from hotel Wi-Fi or your phone's mobile data, and instead of the page you get a plain white screen: "Access denied", "Error 1006", "Your IP address has been banned", and a Ray ID at the bottom. At home the same link opens fine. You have never visited the site, so the ban is most likely not about you but about the address your connection happened to be using.

This post explains what 1006, 1007 and 1008 mean, who set the ban and why it lands on people who did nothing, then what a visitor, a site owner and a proxy user can each do. It does not explain how to get around a ban: keeping an address out is the owner's decision.

What do Cloudflare errors 1006, 1007 and 1008 mean?

They mean that the site refuses every request from your current IP address. Cloudflare documents the codes on a single page, Error 1006, 1007, 1008 or 1106, under the heading "Access Denied: Your IP address has been banned". The cause given there is one sentence: a Cloudflare customer blocked traffic from your client or browser. The fix is equally short: ask the site owner to review their security settings or to allow your IP address.

Behind the page, the HTTP status is 403 Forbidden; the four-digit code appears only in the HTML body. A program that logs status codes records an ordinary 403.

You may read online that 1007 means a country ban and 1008 a custom firewall rule. Cloudflare's documentation does not say that. It lists 1006, 1007, 1008 and 1106 under one title, with the same cause and the same fix, and gives the country ban its own code, 1009. For a visitor, all four mean the same thing.

Who banned your IP address?

The owner of the website did, not Cloudflare. Your request reaches Cloudflare's servers first, and the owner's rules decide whether it is passed on to the site. When a rule says "block this address", Cloudflare shows the 1006 page.

Three tools in the Cloudflare dashboard end in this page:

  • IP Access rules. A rule matches an IP address, an IP range, an ASN (the number of the network an address belongs to) or, on Enterprise plans, a country. Its action is block, allow or a challenge. According to the IP Access rules parameters, a rule can cover an IPv4 /24 (256 addresses) or /16 (65,536 addresses), and IPv6 ranges such as /64 and /48.
  • WAF custom rules with IP lists. Cloudflare now recommends this route for IP-based blocking: the owner keeps a list of addresses and refers to it in a rule.
  • Zone Lockdown. The owner allows only listed addresses to open a URL, such as an admin panel. Everyone else is denied; Cloudflare's example shows code 1106, which shares the 1006 page.

This explains a confusing case: if only a login page or /admin fails, you may not be banned at all. That part may be open only to a fixed list of addresses.

How does an IP ban work?

An IP ban compares the address of every incoming request with a list and blocks the matches:

  1. The owner adds an address or range to a rule, usually after seeing abuse in the logs: spam sign-ups, password guessing, a burst of automated requests.
  2. Your request reaches Cloudflare. It sees only the public IP address your connection uses at that moment, not your device, account or name.
  3. The address is compared with the rules. A rule can match the exact address or a whole range that contains it.
  4. On a match, the action runs. If it is block, Cloudflare returns the 403 with the 1006 page and does not forward the request.
  5. The ban stays until the owner removes it. Unlike a rate limit, an IP ban has no built-in expiry. Waiting does not lift it.

Step 3 is where innocent visitors get caught. A rule on a /24 covers 256 addresses at once, and on IPv6 a /64 is normally the block given to one whole network, such as a home or a phone. The owner may have meant one abuser, but the rule covers everyone in the range.

How do 1006, 1005, 1009, 1015 and 1020 differ?

All of these are Cloudflare error pages, and all come from a rule the site owner set. What differs is what the rule looked at and whether time fixes it:

CodeWhat the rule matchedLifts by itself?
1006, 1007, 1008, 1106Your IP address or its rangeNo, only the owner
1005The whole network (ASN) of your addressNo, only the owner
1009The country your IP address appears inNo, only the owner
1015Too many requests in a short timeYes, after the block period
1020A custom firewall ruleNo, only the owner

The 1020 page is the closest relative: an owner can write a custom rule that matches an IP address too, and then the visitor sees 1020 instead of 1006. How that page works, and how owners trace it, is in our post on Cloudflare Error 1020.

Why was my IP address banned when I did nothing?

Because an IP address is not a person. Many people use the same public address at once, and addresses pass from one user to the next. The ban follows the address, so you inherit what someone else did with it.

Mobile data. Carriers often put many subscribers behind one public IPv4 address with carrier-grade NAT (CGNAT); the internal side of this setup even has its own reserved range, 100.64.0.0/10, defined in RFC 6598. If the owner bans the public address because of one subscriber, everyone behind it sees 1006.

Offices, schools, hotels and VPNs. A whole building goes online through one address, and hundreds of VPN users can share one exit. One infected laptop or one aggressive script is enough for the owner to ban it.

Cloud and hosting networks. A cloud server, a remote desktop or a CI pipeline uses a datacenter address, and some owners ban whole hosting ranges.

The previous holder of a dynamic address. Home connections often get a different address after the router reconnects. The one you got this morning may have been banned last week while someone else held it.

A neighbour in the same range, or your proxy. If the owner banned a /24 or an IPv6 /64, your address may be clean and still fall inside the block. And if you go online through a proxy, the site sees the proxy's address, which may already be on the list.

How do you check which IP address the site sees?

The site sees your public IP address, not the one in your computer's network settings. On a dual-stack connection it may not even be the same protocol: one app can reach a site over IPv6 while another uses IPv4, and a ban on one does not have to cover the other.

Advanced: every site behind Cloudflare answers on the path /cdn-cgi/trace with the address Cloudflare received your request from. Replace the domain with the site that shows the error:

bash
# Which address does Cloudflare see, and which data center answered?
curl -s https://www.cloudflare.com/cdn-cgi/trace | grep -E "^(ip|loc|colo|warp)="

# Force IPv4 to compare
curl -s -4 https://www.cloudflare.com/cdn-cgi/trace | grep -E "^(ip|loc)="

On our test machine the first command returned an IPv6 address and the second an IPv4 address: one computer, two addresses. The colo= value matched the three letters at the end of the CF-Ray header. If the banned site blocks the trace path too, run it against another Cloudflare site from the same connection.

What can you do as a visitor?

Try the page once after each step.

  1. Check that it is only this site. If other sites open, your internet works; the problem is between your address and this one site.
  2. Turn off VPNs, proxies and relay features. Close the VPN app, disable proxy extensions and check the system proxy setting. Relay features in browsers and operating systems also change the address the site sees.
  3. Try once from a different network. Switch from Wi-Fi to mobile data or the other way round. If the page opens, the ban is on the first network's address, not on your device or account.
  4. Restart the router if your home address is the banned one. Many home connections get a new public address after a reconnect; others keep a fixed one. How to tell which you have is in our guide on how to change your IP address.
  5. On a shared network, tell whoever runs it. In an office or school, the administrator should know the building's address is banned; something on the network may be the cause.
  6. Write to the site owner. Use the site's contact address, not Cloudflare's. Include the Ray ID, the date and time with your time zone, the IP address the trace shows and one line on what you were doing.

Changing your DNS server does not help: it does not change the address you connect from. And if the ban is clearly aimed at you, for example after your own script flooded the site, hopping between networks is exactly what the rule is meant to stop. Write to the owner instead.

If you own the site: how do you find and lift the ban?

Start from the Ray ID the visitor sends.

  1. Find the event. In the Cloudflare dashboard, open the zone's Analytics page, go to the Events tab and filter by the Ray ID. The event shows the action, the rule, the IP address, the ASN and the country. The view can be sampled, so if the Ray ID is missing, filter by the visitor's IP address as well.
  2. Look at what the rule matched. A single address may belong to a carrier or an office; a /16, an IPv6 /48 or an ASN may cover thousands of real visitors.
  3. Check every tool. The block may come from an IP Access rule, an IP list in a custom rule or Zone Lockdown. In the current dashboard they are on the Security rules page.
  4. Narrow the rule or soften the action. Ban the exact address instead of the range, or use Managed Challenge instead of Block for shared ranges, so real people can pass a check.
  5. Allow trusted visitors. An allow rule keeps a partner, payment provider or your own monitoring service out of future bans. An allowed IP or ASN skips custom rules, rate limiting rules and WAF managed rules, so allow only addresses you trust.
  6. Plan an expiry. Note the date and reason on each rule and review the list; addresses change hands, and last year's ban may now hit a customer.

On paid plans you can also replace the default page with your own IP/Country block error page. If it names a contact address, blocked visitors know whom to write to and send you the Ray ID with the message.

When the banned address is your proxy's

If you use a proxy for your own legitimate work, such as testing your own site from another network or keeping a team's dashboard sessions on one stable address, a 1006 page means the proxy's address is on the owner's list. Confirm it first: if the site opens without the proxy and fails with it, the proxy address is the banned one. How addresses build up such a history is explained in our post on IP reputation.

The fix for legitimate traffic is a cleaner, less shared address, not more addresses. ISP Proxy give you a fixed address registered to an internet service provider; nobody else's traffic leaves from it, so a ban on it can only come from your own use. They cover 240,000+ addresses in 20+ countries.

To check how your own site looks to visitors in a given country or city, Residential Proxy come from home connections, with sticky sessions of 1 to 60 minutes when a test needs the same address throughout.

If a site has banned you, or bans proxy traffic as a policy, ask the owner for access; do not keep switching addresses.

Common mistakes

  • Refreshing and waiting. An IP ban has no timer; tomorrow the page looks the same unless the address or the rule changes.
  • Clearing cookies or switching browsers. Neither changes the IP address the site sees.
  • Leaving a VPN on while testing. A forgotten VPN app or extension makes the other-network test misleading.
  • Owners banning whole ranges by reflex. A /16 or ASN ban stops one abuser and thousands of customers.
  • Owners leaving bans without notes. Without a date and reason, nobody removes an old rule, and it keeps hitting new holders of the address.

Decision guide

Your situationWhat to do
Fails on one network, opens on anotherThat network's address is banned; tell its admin or the owner
You are on a VPN or proxyTurn it off and try once more
Only /admin or the login page failsThe area may be locked to fixed addresses; ask the owner
The ban follows you on every networkIt may target you; write to the owner
Visitors report 1006 on your siteFind the Ray ID in Events, narrow the rule
Your proxy's address is bannedUse a dedicated, cleaner address for legitimate work

Frequently asked questions

How long does Error 1006 last?

There is no set duration. An IP ban stays until the site owner removes the rule, or until your connection moves to an address the rule does not cover. Error 1015, the rate limit page, is different: it lifts by itself after a period the owner sets.

Can Cloudflare remove the ban for me?

No. Cloudflare's documentation says its support cannot override a customer's security settings. Write to the website through its contact page or support email and include the Ray ID.

Is Error 1006 a ban on my account?

No. The rule matches the IP address of the connection, not a username, which is why the same account works on another network. If the site has also suspended your account, it tells you so on its own page after you log in.

Does restarting the router fix Error 1006?

Sometimes. With a dynamic address, a reconnect may bring a new one that is not on the list. With a fixed address, or a ban on the whole range, nothing changes. If the ban was aimed at your own behaviour, a new address only postpones the next one.

Why does the site work on Wi-Fi but show Error 1006 on mobile data?

Because the two connections use different public addresses. Carriers often share one public address among many subscribers, so a ban caused by another subscriber lands on you too. A banned home or office address works the same way in reverse.

Can I see who else uses my IP address?

No. Carriers, VPN services and network administrators do not publish who shares an address. You can see the address itself, and whether it belongs to a carrier, a hosting company or a VPN, by looking up its network (ASN) in a public lookup service.

Summary

Cloudflare errors 1006, 1007 and 1008, along with 1106, show one page: the site owner has banned the IP address your request came from. The status behind it is 403, Cloudflare only enforces the rule, and the ban does not expire by itself. Innocent visitors usually inherit it from a shared address on mobile data, public Wi-Fi, an office network or a VPN. Turn off any VPN, try another network to confirm the cause, and send the owner the Ray ID, time and IP address. Owners find the rule through the Ray ID and narrow it; teams whose shared proxy address is the problem can move their legitimate traffic to a dedicated address from our proxy services.

Ask ChatGPTAsk Claude