{"id":667,"date":"2023-05-22T10:28:05","date_gmt":"2023-05-22T10:28:05","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2023\/05\/22\/7930807-hostinger-cdn-how-to-block-ips\/"},"modified":"2026-08-20T02:37:39","modified_gmt":"2026-08-20T02:37:39","slug":"7930807-hostinger-cdn-how-to-block-ips","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/7930807-hostinger-cdn-how-to-block-ips\/","title":{"rendered":"Hostinger CDN: How to block IPs"},"content":{"rendered":"<p class=\"no-margin\">Preventing some specific IP addresses or a range of IP addresses from accessing your website is commonly used as a security measure to protect your site from unauthorized access, malicious activities, or unwanted traffic. You can block them using <a href=\"https:\/\/www.hostinger.com\/support\/7935917-hostinger-cdn-website-optimization\/\">Hostinger CDN<\/a>.<\/p><h2 id=\"h_2779a2c036\">Block an IP address<\/h2><p class=\"no-margin\">In <b>hPanel <\/b>&rarr; <b><a class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites<\/a><\/b>, click on <b>Dashboard <\/b>next to the website in question. Then, on the sidebar search for <b>CDN<\/b> and open its settings:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16170\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png\" alt=\"\" width=\"266\" height=\"667\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png 266w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28-120x300.png 120w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><\/div><p class=\"no-margin\">Click on <strong>Manage&nbsp;<\/strong>to access the CDN settings of the preferred website:<\/p><div class=\"intercom-container\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16191\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21.png\" alt=\"\" width=\"1132\" height=\"392\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21.png 1132w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21-300x104.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21-1024x355.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21-768x266.png 768w\" sizes=\"(max-width: 1132px) 100vw, 1132px\" \/><\/div><p class=\"no-margin\">Now, open the section <b>Traffic blocking<\/b>, click on <b>Block IP address<\/b>, or <b>Add IP block<\/b>, select the IPs, or IP ranges you want to block, and click on <b>Block <\/b>to confirm:<\/p><div class=\"intercom-container\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16206\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35.png\" alt=\"\" width=\"1159\" height=\"676\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35.png 1159w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35-300x175.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35-1024x597.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35-768x448.png 768w\" sizes=\"(max-width: 1159px) 100vw, 1159px\" \/><\/div><p class=\"no-margin\">And that&rsquo;s it!<\/p><h2 id=\"h_4211e6e3a9\">Remove the IP block<\/h2><p class=\"no-margin\">To remove an IP block, in <b>hPanel <\/b>&rarr; <b><a class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites<\/a><\/b>, click on <b>Dashboard <\/b>next to the website in question. Then, on the sidebar search for CDN and open its settings:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16170\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png\" alt=\"\" width=\"266\" height=\"667\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png 266w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28-120x300.png 120w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><\/div><p class=\"no-margin\">Click on <strong>Manage<\/strong> to access the CDN settings of the preferred website:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16191\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21.png\" alt=\"\" width=\"1132\" height=\"392\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21.png 1132w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21-300x104.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21-1024x355.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21-768x266.png 768w\" sizes=\"(max-width: 1132px) 100vw, 1132px\" \/><\/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><div class=\"intercom-container\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16207\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35_1.png\" alt=\"\" width=\"1171\" height=\"618\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35_1.png 1171w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35_1-300x158.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35_1-1024x540.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35_1-768x405.png 768w\" sizes=\"(max-width: 1171px) 100vw, 1171px\" \/><\/div><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Alternatively, you can also <b><a class=\"intercom-content-link\" href=\"\/support\/7931101-hostinger-cdn-how-to-block-countries\/\" target=\"_blank\" rel=\"noopener\">block countries<\/a><\/b> &#128161;<\/p>\n<\/div><h2 class=\"no-margin\" id=\"h-blocking-multiple-ips-at-once-bulk-upload\"><b>Blocking multiple IPs at once (bulk upload)<\/b><\/h2><p>Besides adding IPs one by one, you can also submit a list of IPs in a single action:<\/p><ol>\n<li>In the Traffic blocking section, click <b>Block IP address<\/b>.<\/li>\n<li>In the input field, enter multiple IP addresses separated by commas or on separate lines &mdash; or upload a <b>.csv<\/b> or <b>.txt<\/b> file containing the IP values.<\/li>\n<li>Click <b>Block<\/b> to apply all entries at once.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Blocking an IP address, and removing an IP 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-667","post","type-post","status-publish","format-standard","hentry","category-cdn"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/7930807-hostinger-cdn-how-to-block-ips\/","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/667","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=667"}],"version-history":[{"count":8,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/667\/revisions"}],"predecessor-version":[{"id":16209,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/667\/revisions\/16209"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}