Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk4 min

Hostinger CDN: How to Block Countries (and What Country Blocking Cannot Do)

Hostinger CDN lets you block or allow traffic by country from the Traffic blocking section. Here is the dashboard path, the mode difference, and the limits of IP geolocation.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To block countries on Hostinger’s CDN, open the website’s CDN settings, go to Traffic blocking, and add a country block. Before you do, understand two things: country rules work only on traffic that passes through Hostinger’s CDN, and they rely on IP geolocation, which VPNs and proxies can get around. Country blocking is a useful access-control layer, not a security boundary. You also choose one of two mutually exclusive modes, and switching between them erases your country list.

Block countries in the Hostinger dashboard

Dashboard labels can change, so if a name below differs from what you see, look for the same feature area inside the website’s CDN settings. Hostinger’s CDN optimization guide documents the Traffic blocking section and notes that some features depend on your plan.

As an Amazon Associate I earn from qualifying purchases.

  1. In hPanel, open Websites and choose Dashboard for the website you want to protect.
  2. Open CDN and click Manage.
  3. In the Traffic blocking section, click Block country or Add country block.
  4. Select the countries you want to restrict.
  5. Confirm with Block. The rule then applies to requests that reach the CDN from those countries.

Choose block mode or allow-only mode

Hostinger offers two country modes, and only one can be active at a time. In block mode, requests geolocated to the countries you select are denied and everyone else gets through. In allow-only mode, the countries you select are permitted and all others are blocked.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Mode What happens to listed countries What happens to unlisted countries Main risk
Block selected countries Denied Allowed Covers only the countries you list; visitors from elsewhere can still reach the site, including attackers.
Allow only selected countries Allowed Denied Can lock out customers, partners, payment callbacks, or API clients located outside the list.

Warning: switching modes clears the existing country list, and Hostinger states that this cannot be undone. Copy your current country selections somewhere safe before you change modes, then re-enter them under the new mode.

#1 Best Overall
Sale
Pearson Computer Networking, 8E
  • brand: Pearson
  • Computer Networking, 8e

What country blocking can and cannot do

It depends on IP geolocation

A country rule matches each request against the geographic location associated with the visitor’s IP address. Hostinger says the feature is not foolproof: VPN and proxy users can appear to be in a permitted country and bypass a rule. Geolocation databases can also assign an address to the wrong country, so a rule may catch some legitimate visitors and miss some unwanted ones. Treat country blocking as one filter among several, not as proof of who is visiting.

It applies only to traffic passing through the CDN

Requests that reach your origin server directly, without going through Hostinger’s CDN, are not filtered by the country rule. The rule therefore protects the site only as far as all public traffic is routed through the CDN.

Plan limits apply

Country blocking is not available on Agency Hosting plans. If the option is missing from your Traffic blocking section, check your plan before troubleshooting further.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When a country block breaks a legitimate request

Blocking by country can deny services you depend on. A payment gateway callback, a contact form submitted from abroad, a login from a traveling customer, or an API request from a partner’s data center can all originate in a blocked country. Diagnose the problem before you edit the rule:

  1. Record the failing URL, the HTTP method (GET, POST, and so on), and the status code returned to the caller.
  2. Look for the x-hcdn-request-id response header if your tool or browser shows it. Include that ID when you contact Hostinger support.
  3. If the response is a 403, check the CDN security settings first, because Hostinger’s troubleshooting guidance associates 403 responses with CDN security filtering.
  4. If the caller could plausibly be in a restricted country, review your country rules and any IP rules that might cover the caller’s address.
  5. Change one rule at a time and retest the same request after each change.

Reading CDN analytics and origin logs

Hostinger says blocked requests can still appear in CDN analytics, because the CDN counts a request before it returns the 403. A country-blocked request showing up in analytics therefore does not mean it reached your website.

If a blocked-country request appears in your origin server logs, one of three explanations usually applies:

  • The request arrived before you added the country block.
  • The IP geolocation database placed the visitor in a different country from the one you expected.
  • The request bypassed the CDN and connected directly to the hosting server.

Comparing the timestamp of the block with the log entry will usually separate the first explanation from the other two.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Other ways to restrict access

Option What it does Consideration
Country block or allow-only Filters requests by the geolocation of the visitor’s IP Broad; affects everyone in the chosen countries and can be bypassed with VPNs or proxies.
IP or IP range blocking Denies specific addresses or ranges through Traffic blocking More precise when the unwanted source is known; it does not replace a country policy and needs ongoing maintenance.
Third-party CDN Replaces Hostinger’s CDN with another edge service Hostinger’s documentation advises enabling only one CDN at a time, so confirm compatibility and setup before switching.

If the traffic you want to stop comes from a specific bot or scraper, an IP or range block is usually the better first step. Country rules work best as a coarse filter for regions you do not serve at all.

Remove a country rule

  1. Return to Websites, open the site’s Dashboard, then CDN, and click Manage.
  2. In Traffic blocking, click the trash icon beside the rule.
  3. Confirm the deletion.

Removing a rule takes effect for new requests going through the CDN. Requests that were already blocked will simply be allowed on their next attempt.

The sources reviewed for this article did not state a numerical effectiveness rate or a timeframe for propagation of rule changes, so avoid assuming either.

”

The Bottom Line

Use country blocking for coarse, region-level restrictions on traffic that passes through Hostinger’s CDN, choose block or allow-only mode deliberately because switching clears your list, and check logs and analytics before concluding that a rule did or did not work. For anyone blocking abuse, pair it with IP or range rules and your own application-level checks.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.