Cloudflare
Cloudflare errors 1006, 1007 and 1008: IP banned
All three codes carry the same message: access denied, your IP address has been banned. The owner of the site has decided that requests from your address are not welcome, and the response is about addresses and traffic, not about CAPTCHAs.
What the three codes have in common
Cloudflare documents 1006, 1007 and 1008 together. Each shows an "Access denied" page stating that the owner of the website has banned your IP address, with a Ray ID and an HTTP 403 status. The differences between the three are internal to how the ban was configured; for anyone on the receiving end they mean the same thing. Your IP, or a range that contains it, is on a deny list the owner controls, through IP Access Rules or an equivalent rule.
The key difference from many other Cloudflare responses: the decision is about where the request comes from, not what it contains. Headers, cookies and fingerprints do not matter to an IP ban, and there is nothing to solve.
Why an IP ends up banned
Owners ban addresses for a handful of reasons, and from the outside you usually cannot tell which:
- Traffic volume. Many requests from one address in a short time, especially to expensive pages such as search or checkout.
- Past abuse. Credential stuffing, form spam or scraping that strained the site, possibly by a previous user of the same address.
- Network type. Bans on whole ranges belonging to hosting providers or proxy services, because those ranges sent abusive traffic before.
- Shared addresses. A ban aimed at one user of a busy network (an office, a university, a mobile carrier's carrier grade NAT, a VPN exit) affects everyone behind it.
- Geography. Some owners ban ranges by region using IP rules rather than country rules.
The last two explain why perfectly ordinary visitors sometimes see these errors. A ban on an address does not know who is behind it today.
How long a ban lasts
There is no fixed duration. Manual IP rules stay until the owner removes them, which may be never. Bans created automatically by rate rules or security tools may expire after minutes or hours. Since you cannot see which kind you hit, the practical approach is to stop sending from that address, wait, and try a single request much later. If the ban is still there after a day, assume it is long term.
What not to do
Retrying a banned address in a loop accomplishes nothing and may extend an automatic ban. Solving CAPTCHAs does not help either: the 1006~1008 page has no challenge, and a clearance cookie from another IP would not apply to the banned one. Be wary of anyone who promises to get you past an IP ban with a token or a trick. The ban is the site owner telling a specific address to go away.
Rotating rapidly through new addresses to keep hitting a site that banned you is also a poor idea. It is exactly what bans are designed to stop, it tends to get whole ranges banned, and it pushes your traffic into the kind of pattern that bot management scores most harshly.
Sensible responses for automation
If your scraper or monitor triggered the ban, treat it as feedback about how your traffic looked:
- Stop the affected address. Remove it from rotation for that site immediately. Your code should do this automatically when it sees one of these codes.
- Look at your rate. Compare the request rate per address just before the ban with what an ordinary visitor would do. If it was far higher, lower it for every address, not just the banned one.
- Check what you fetched. Repeatedly hitting search, filter or API endpoints costs a site far more than reading static pages. Cache aggressively and fetch only what changed.
- Consider network quality. If the ban covers a whole hosting range, your provider's addresses may have a history. The entries on IP reputation and IP blocking explain how that history follows an address.
- Ask. For ongoing access, contact the site with the Ray ID and explain your use. Many owners prefer an agreed rate or an API to an ongoing contest.
For ordinary visitors
If you see 1006, 1007 or 1008 while browsing, switch networks: turn off a VPN, try mobile data instead of office Wi-Fi, or the other way round. If the site loads, the ban was on the shared address. If you need access from the banned network, contact the site with the Ray ID shown on the error page so the owner can find the rule.
How these fit with other Cloudflare responses
It helps to see the 1xxx errors as a family of owner decisions, each keyed to something different. 1006~1008 key on the IP. 1010 keys on the browser signature. 1020 keys on any field a custom firewall rule checks. 1015 keys on rate. In none of these does Cloudflare offer a way through. Compare that with the managed challenge page and the Turnstile widget, where the site explicitly offers a check that a legitimate client can pass; those are the cases a solving API is built for.
A scraper that classifies every response, as shown in the guide to telling Cloudflare protections apart, can react correctly to each: pass challenges, slow down on rate limits, and stop on bans.
Reading the ban from your logs
When an address gets banned, your logs usually tell the story in hindsight. Pull the requests from that address for the hour before the first 1006~1008 response and look at three things: requests per minute, the share of requests to search or API endpoints, and whether the rate rose steadily or jumped. A steady climb points to a crawl that was simply too fast. A jump often follows a code change or a retry loop gone wrong, which is worth fixing before it bans the next address. If neither shows anything unusual, the address may have been banned for someone else's traffic, which is common with shared proxies.
Designing to avoid bans
Bans are much easier to avoid than to recover from. A few habits keep addresses healthy over the long run:
- Set a per address rate that a human could plausibly produce, and enforce it in one place in your code.
- Spread work over more addresses rather than pushing more through each one.
- Back off sharply on the first sign of trouble: 429s, challenges or sudden 403s.
- Reuse sessions and cookies instead of starting cold on every request.
- Prefer official APIs, feeds and sitemaps where they exist.
The longer guide on how to avoid IP bans covers pacing and address management in more depth.
Common questions
What is the difference between 1006, 1007 and 1008?
They differ in how the ban was configured internally. For a visitor all three mean the site owner banned the IP address.
Can I solve a CAPTCHA to get past an IP ban?
No. These pages contain no challenge, and a ban on an address is not lifted by a token or cookie.
How long do Cloudflare IP bans last?
It depends on the owner. Manual bans last until removed; automatic ones may expire after minutes or hours.
Why am I banned if I did nothing?
You may share the IP with others, for example on a VPN, office network or mobile carrier, and someone else's traffic triggered the ban.
What should my scraper do when it sees these codes?
Stop using that address for the site, lower the rate overall, and review which pages it was fetching.
Keep reading
- Cloudflare error 1020 Access DeniedError 1020 means a site owner's firewall rule matched your request. What it covers, what a client can change, and what it cannot.
- IP blockingSites block single addresses, whole subnets or entire networks, usually after rate, reputation or abuse signals cross a threshold.
- How to avoid IP bans while scrapingPacing, address rotation, sticky sessions and caching: four levers that keep a scraper's IP addresses usable for months instead of hours.
- IP reputationTrust scores attached to addresses and ranges, built from network type, ownership and a record of past abuse.