{"id":666,"date":"2023-05-22T12:10:01","date_gmt":"2023-05-22T12:10:01","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2023\/05\/22\/7931101-hostinger-cdn-how-to-block-countries\/"},"modified":"2026-10-29T14:44:39","modified_gmt":"2026-10-29T14:44:39","slug":"7931101-hostinger-cdn-how-to-block-countries","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/7931101-hostinger-cdn-how-to-block-countries\/","title":{"rendered":"Hostinger CDN: How to block countries"},"content":{"rendered":"<p class=\"no-margin\">Country blocking is a technique used to restrict access to a website based on the geographic location of the user\u2019s IP address. Country blocking is not foolproof and can have limitations. IP addresses can be <b>spoofed<\/b>, and people may use<b> <a data-click-id=\"hgr-post-content-link-virtual-private-networks\" class=\"intercom-content-link\" href=\"\/tutorials\/\" target=\"_blank\" rel=\"noopener\">virtual private networks<\/a> <\/b>(VPNs) or <b><a data-click-id=\"hgr-post-content-link-proxy-servers\" class=\"intercom-content-link\" href=\"\/tutorials\/\" target=\"_blank\" rel=\"noopener\">proxy servers<\/a><\/b> to bypass country-based restrictions. Therefore, it\u2019s often used as one layer of security or access control among other measures to protect systems and networks.<\/p>\n<p class=\"no-margin\"><a data-click-id=\"hgr-post-content-link-hostinger-cdn\" href=\"\/support\/7935917-hostinger-cdn-website-optimization\/\">Hostinger CDN<\/a> supports two country traffic modes: Block specific countries (deny selected countries) and Allow only specific countries (permit only selected countries, blocking all others). Only one mode can be active at a time.<\/p>\n<p><strong>NOTE<\/strong><\/p>\n<ul>\n<li>Country blocking is not available on Agency Hosting plans.<\/li>\n<\/ul>\n<h2 id=\"h_83ee5bf9b6\">Block countries<\/h2>\n<p class=\"no-margin\">In <b>Hostinger dashboard <\/b>\u2192 <b><a data-click-id=\"hgr-post-content-link-websites\" class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites<\/a><\/b>, hover over the website in question and click <strong>Manage site.<\/strong>\u00a0Then, on the sidebar, search for <b>CDN<\/b> and open its settings:<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16170\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png\/public\" alt=\"\" width=\"266\" height=\"667\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png\/w=266,fit=scale-down 266w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png\/w=120,fit=scale-down 120w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><\/div>\n<p class=\"no-margin\">Click on <strong>Manage<\/strong> to access the CDN settings of the preferred website:<\/p>\n<div class=\"intercom-container\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16191\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21.png\/public\" alt=\"\" width=\"1132\" height=\"392\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21.png\/w=1132,fit=scale-down 1132w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1132px) 100vw, 1132px\" \/><\/div>\n<p class=\"no-margin\">Now, open the section <b>Traffic blocking<\/b>, click on <b>Block country<\/b>, or <b>Add country block<\/b>, select the countries you want to block and click on <b>Block <\/b>to confirm:<\/p>\n<div class=\"intercom-container\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16176\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-37_1.png\/public\" alt=\"\" width=\"1147\" height=\"658\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-37_1.png\/w=1147,fit=scale-down 1147w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-37_1.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-37_1.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-37_1.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1147px) 100vw, 1147px\" \/><\/div>\n<p class=\"no-margin\">And that\u2019s it!<\/p>\n<h2 id=\"h-allow-traffic-only-from-specific-countries\">Allow traffic only from specific countries<\/h2>\n<p>In addition to blocking countries, Hostinger CDN supports an <strong>Allow countries<\/strong> mode. When enabled, only visitors from your selected countries can access the website \u2014 all other traffic is blocked at the CDN edge.<\/p>\n<p>To allow traffic only from specific countries, go to<strong> Hostinger dashboard \u2192 <a data-click-id=\"hgr-post-content-link-websites-2\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites<\/a><\/strong>, hover over the website in question and click <strong>Manage site<\/strong>, then open CDN settings from the sidebar.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-16170\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png\/public\" alt=\"\" width=\"266\" height=\"667\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png\/w=266,fit=scale-down 266w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png\/w=120,fit=scale-down 120w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><br \/>\nClick on <strong>Manage<\/strong> to access the CDN settings of the preferred website.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-16191\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21.png\/public\" alt=\"\" width=\"1132\" height=\"392\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21.png\/w=1132,fit=scale-down 1132w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1132px) 100vw, 1132px\" \/><\/p>\n<p>Now, open the<strong> Traffic blocking section<\/strong> and click the <strong>Allow only specific countries<\/strong> toggle. Select the countries you want to allow and confirm.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-10998\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-29_17-14.png\/public\" alt=\"\" width=\"935\" height=\"543\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-29_17-14.png\/w=935,fit=scale-down 935w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-29_17-14.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-29_17-14.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 935px) 100vw, 935px\" \/><\/p>\n<p><strong>NOTES<\/strong><\/p>\n<ul>\n<li>You can use Block specific countries OR Allow only specific countries \u2014 not both at the same time.<\/li>\n<li>Switching between the two modes will clear your existing country list. This action cannot be undone.<\/li>\n<li>Country-based rules rely on IP geolocation and are not foolproof. Visitors using VPNs or proxy servers may still bypass them. See <a data-click-id=\"hgr-post-content-link-hostinger-cdn-visitor-ip-addresses-in-logs-and-analytics\" href=\"\/support\/hostinger-cdn-visitor-ip-addresses-in-logs-and-analytics\/\">Hostinger CDN: Visitor IP addresses in logs and analytics<\/a> for more details.<\/li>\n<\/ul>\n<h2 id=\"h_c4a6ff33c6\">Remove the country block<\/h2>\n<p class=\"no-margin\">To remove a country block, in <b>Hostinger dashboard <\/b>\u2192 <b><a data-click-id=\"hgr-post-content-link-websites-3\" class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites<\/a><\/b>, hover over the website in question and click <strong>Manage site<\/strong>.\u00a0Then, on the sidebar search for <b>CDN<\/b> and open its settings:<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16170\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png\/public\" alt=\"\" width=\"266\" height=\"667\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png\/w=266,fit=scale-down 266w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png\/w=120,fit=scale-down 120w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><\/div>\n<p class=\"no-margin\">Click on <strong>Manage\u00a0<\/strong>to access the CDN settings of the preferred website:<\/p>\n<div class=\"intercom-container\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16190\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-17.png\/public\" alt=\"\" width=\"1162\" height=\"365\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-17.png\/w=1162,fit=scale-down 1162w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-17.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-17.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-17.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1162px) 100vw, 1162px\" \/><\/div>\n<p class=\"no-margin\">Now, open the section <b>Traffic blocking<\/b>, click on the <b>trash bin icon<\/b>, and then click on <b>Delete<\/b> to confirm:<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16177\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-38.png\/public\" alt=\"\" width=\"1170\" height=\"587\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-38.png\/w=1170,fit=scale-down 1170w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-38.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-38.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-38.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1170px) 100vw, 1170px\" \/><\/div>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Alternatively, you can also <b><a data-click-id=\"hgr-post-content-link-block-ip-addresses\" class=\"intercom-content-link\" href=\"\/support\/7930807-hostinger-cdn-how-to-block-ips\/\" target=\"_blank\" rel=\"noopener\">block IP addresses<\/a><\/b><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Blocking countries, and removing a country block<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[262],"tags":[],"class_list":["post-666","post","type-post","status-publish","format-standard","hentry","category-cdn"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/7931101-hostinger-cdn-how-to-block-countries","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/7931101-hostinger-cdn-como-bloquear-paises","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/7931101-hostinger-cdn-comment-bloquer-des-pays","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/7931101-hostinger-cdn-como-bloquear-paises","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=666"}],"version-history":[{"count":11,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/666\/revisions"}],"predecessor-version":[{"id":22646,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/666\/revisions\/22646"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}