{"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-03-16T12:12:03","modified_gmt":"2026-03-16T12:12:03","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&rsquo;s IP address.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Note that country blocking is not foolproof and can have limitations. IP addresses can be <b>spoofed<\/b>, and people may use<b> <a href=\"https:\/\/www.hostinger.com\/tutorials\/what-is-vpn\" target=\"_blank\" class=\"intercom-content-link\">virtual private networks<\/a> <\/b>(VPNs) or <b><a href=\"https:\/\/www.hostinger.com\/tutorials\/proxy-vs-vpn\" target=\"_blank\" class=\"intercom-content-link\">proxy servers<\/a><\/b> to bypass country-based restrictions. Therefore, it&rsquo;s often used as one layer of security or access control among other measures to protect systems and networks &#128161; <\/p>\n<\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_83ee5bf9b6\">Block Countries<\/h2><p class=\"no-margin\">In <b>hPanel <\/b>&rarr; <b><a href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Websites<\/a><\/b>, click on <b>Manage <\/b>next to the website in question. Then, on the sidebar, search for <b>CDN<\/b> and open its settings:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/05\/479993ec-24ed-4873-a059-6c952558d19b.jpg\" alt=\"Access the CDN settings of the preferred website\" width=\"250\"><\/div><p class=\"no-margin\">Click on the arrow <b>&gt;<\/b> to access the CDN settings of the preferred website:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/05\/d919c314-d8ee-4afc-aca4-65f1ae62187e.jpg\"><\/div><p class=\"no-margin\">\n<\/p><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><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/05\/5b27dc87-4692-4479-b25f-b4a9022fdced.jpg\"><\/div><p class=\"no-margin\">And that&rsquo;s it!<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_c4a6ff33c6\">Remove the Country Block<\/h2><p class=\"no-margin\">To remove a country block, in <b>hPanel <\/b>&rarr; <b><a href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Websites<\/a><\/b>, click on <b>Manage <\/b>next to the website in question. Then, on the sidebar search for <b>CDN<\/b> and open its settings:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/05\/479993ec-24ed-4873-a059-6c952558d19b.jpg\" alt=\"CDN settings in the website's hosting dashboard\"><\/div><p class=\"no-margin\">Click on the arrow <b>&gt;<\/b> to access the CDN settings of the preferred website:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/05\/ad0ab067-8de4-4128-9703-fdea84b73df7.jpg\"><\/div><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><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/05\/6ca102a1-edbf-49fe-a829-3d25374ea824.jpg\" alt=\"Removing a country block\"><\/div><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Alternatively, you can also <b><a href=\"\/support\/7930807-hostinger-cdn-how-to-block-ips\" target=\"_blank\" class=\"intercom-content-link\">block IP addresses<\/a><\/b> &#128161;<\/p>\n<\/div>\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":{"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-PT","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":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/666\/revisions"}],"predecessor-version":[{"id":2903,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/666\/revisions\/2903"}],"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}]}}