← Back to Blog

How to Fix Cloudflare Error 1009 "Country or Region Banned"

Cloudflare error 1009 means that the website owner has banned the country or region of your IP. Let's analyze how Cloudflare determines the country, how 1009 differs from 1020, 1005, and 1006, what a proxy resolves, and what it does not, and how to fix the error step by step.

📅November 23, 2026
How to Fix Cloudflare Error 1009 "Country or Region Banned"

The Cloudflare Error 1009 "Access denied: country or region banned" means that the website owner has blocked access to the entire country or region that your IP address is associated with. It's not an issue with your browser or account: the site only looks at the IP. Therefore, there are two solutions: ask the owner to grant access or connect using an IP from a country that the site allows, for example, through a proxy. Below, we will discuss how Cloudflare determines the country, how 1009 differs from similar errors, and how to fix it in just a few minutes.

What Error 1009 Means and Who It Affects

In the Cloudflare documentation, the error is referred to as "Access Denied: Country or region banned." The reason given is simple: the website owner has prohibited access from the country or region where your IP address is located. Cloudflare advises the visitor to contact the owner and request permission for their IP, while the website owner should check if this address falls under the blocking rules (official page for error 1009).

Most often, 1009 occurs in the following situations:

  • A local store, delivery service, or city portal operates only in its own country and has closed off the rest of the world;
  • The site has blocked entire regions after a wave of spam, bots, or attacks;
  • You are traveling, and the site you use at home suddenly stops loading;
  • You are working through a VPN or corporate network, and its outgoing IP is listed in a banned country;
  • Your provider has received IP addresses that geolocation databases mistakenly associate with another country.

It's important to note: 1009 is not imposed by Cloudflare on its own initiative. This is a rule set by the website owner. Cloudflare merely determines the country and displays the error page.

How Cloudflare Determines Your Country

Cloudflare looks at the IP address from which the request originated and compares it with its geolocation database. The result is sent to the site in the CF-IPCountry header: this is a two-letter country code according to ISO 3166-1. In addition to the usual codes, there are two special ones: XX indicates that there is no data about the country, while T1 is assigned to visitors from the Tor network.

Cloudflare honestly states that geolocation is an estimate, not an exact science. The database is updated several times a week, accuracy is not guaranteed, and the data may differ from other IP detection services. Hence, a common situation arises: a third-party IP checking service shows one country, while Cloudflare believes you are in another.

Here's how a website owner can enable blocking:

  • IP Access rules — rules based on IP, network (ASN), or country. Country blocking is only available on the Enterprise plan;
  • WAF custom rules — custom rules with fields for Country, Continent, and AS Num. The website owner can block a country using these rules on any plan, and Cloudflare recommends them for geoblocking.

This leads to two practical conclusions. First: only the IP connecting to Cloudflare matters. The browser language, time zone, and DNS server do not influence the country decision. Second: the same site can simultaneously block entire networks by ASN number, and changing the country may not help with every IP.

How 1009 Differs from 1020, 1005, and 1006

ErrorWhat is BlockedWill Changing IP Help
1009Country or region of your IPYes, if the new IP is from an allowed country
1020Request fell under firewall rules: IP, network, headers, pathOften yes, but the rule may consider more than just the IP
1005Network (ASN) from which you cameYes, if the IP is from another network, such as residential
1006Specific IP address or rangeYes, a different address is needed

For detailed information about neighboring errors, see our article Cloudflare 1020, 1005, 1006: why IPs are blocked and how to fix it.

What a Proxy Can and Cannot Solve

A proxy replaces the IP from which the request comes to the site. For error 1009, this is usually sufficient: Cloudflare sees an address from an allowed country, and the country rule does not trigger.

A proxy solves:

  • Country and continent blocking — exactly what 1009 means;
  • Incorrect geolocation of your home IP: you simply connect to the internet from an address that databases correctly identify;
  • Blocking of data center and VPN networks: a residential or mobile IP belongs to a regular provider.

A proxy does not solve:

  • Account, payment card, or phone number restrictions by country: if the service checks these after login, the IP won't change anything;
  • Access to banks, payment systems, and cryptocurrency exchanges: such sites do not open through our proxies;
  • Rules that look at behavior and browser fingerprint: there, 1009 will change to a CAPTCHA or error 1020;
  • Websites where the owner has allowed only specific IP addresses.

How to Fix Error 1009: Step by Step

  1. Check what country Cloudflare sees you as. Open the address https://www.cloudflare.com/cdn-cgi/trace. The response will include the lines ip= and loc=: this is your IP and the country code assigned to it by Cloudflare. If the code is unexpected, you've found the reason.
  2. Turn off unnecessary services. If VPNs, corporate proxies, or "accelerators" in your browser are enabled, turn them off and try opening the site again. Sometimes 1009 is caused by the outgoing server of the VPN being in a banned country.
  3. Understand which country the site allows. Usually, this is the country it is targeted at: domain zone, language, currency, delivery addresses. A local service in the U.S. is almost certainly open to American IPs.
  4. Get a proxy from the required country. For regular browsing, a residential proxy will suffice: its IP belongs to a home provider, and it won't fall under data center network blocking.
  5. Set up the proxy in your browser. It's easiest to do this through an extension or a separate browser profile, so only the necessary site goes through the proxy. The protocol can be HTTP or SOCKS5, and the username and password are obtained from your personal account.
  6. Enable a fixed IP for the duration of the session. If the proxy changes the address with each request, the site may repeatedly show verification. Set the IP change to occur every 10-30 minutes.
  7. Open the site in a clean window. A private window or new profile will clear old cookies tied to the previous session.
  8. Check cdn-cgi/trace again through the proxy. The line loc= should show the desired country. If it is correct but the error persists, the site has other rules, and you should try a mobile IP.

If you are a website owner and see complaints about 1009 from your clients, check the IP Access rules and WAF custom rules with the Country field. For incorrect geolocation of a specific range, Cloudflare accepts corrections through its data correction form. Confirmed corrections are usually made within a few business days, but addresses from mobile operators and CGNAT may change again.

What Type of Proxy is Suitable

TypeWhen to UsePrice per 1 GB
ResidentialMain option: websites, stores, services for their country$2.70
MobileThe site blocks both data centers and some home networks; smartphone applications$3.80
Data CenterSimple sites without bot protection, one-time checks$1.50

If the site operates only for one state or city, targeting by city will be necessary. Such proxies are more expensive: $4.70 for residential and $8.30 for mobile per gigabyte.

Regarding protocols: web traffic goes through proxies via HTTP and HTTPS, so websites, personal accounts, and web versions of services work. Voice calls and online games use UDP and will not work through such proxies. For a regular site with error 1009, this is not important.

For more details on types: residential proxies and mobile proxies.

Common Mistakes

  • Choosing a country "at random." A proxy from Germany won't help if the site only allows the U.S. First, determine the target country of the site.
  • Using Tor. Cloudflare marks such traffic with the code T1, and many owners block it along with "dangerous" countries.
  • Using a free proxy or VPN. Their addresses have long been in databases, often listed in another country, and fall under network blocking.
  • Checking the IP in the wrong place. Third-party IP detection services may show a different country. For Cloudflare, check cdn-cgi/trace.
  • Expecting the proxy to change the account's region. If after logging in the service states it is unavailable in your country, the account or card is being checked, not the IP.
  • Changing the IP with every request. The site sees jumps between addresses and triggers checks. For browsing, one IP per session is needed.

Conclusion

Error 1009 is a geoblocking measure by the website owner: Cloudflare has determined the country of your IP, and it is on the banned list. First, check through cdn-cgi/trace what country you are seen as, and turn off the VPN if it is leading you to the wrong location. If the site is closed to your country, access it with an IP from an allowed country: a residential proxy with a fixed address for the session solves this issue in most cases, while a mobile proxy will help where the site is stricter. Traffic is billed by the gigabyte, so for one-time access to a site, you can start with a small volume.