{"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-04-21T14:05:56","modified_gmt":"2026-04-21T14:05:56","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.<\/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>Manage <\/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\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/05\/479993ec-24ed-4873-a059-6c952558d19b.jpg\" alt=\"CDN settings in the website's hosting dashboard\" width=\"250\"><\/div><p class=\"no-margin\">Click on the arrow <b>&gt;<\/b> to access the CDN settings of the preferred website:<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/05\/e81fd433-5e6b-46a7-9eb6-1364dac73e4e.jpg\"><\/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\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/05\/cdc65718-fcf3-493d-8b01-076002e252b7.jpg\"><\/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>Manage <\/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\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/05\/479993ec-24ed-4873-a059-6c952558d19b.jpg\" alt=\"CDN settings in the website's hosting dashboard\" width=\"248\"><\/div><p class=\"no-margin\">Click on the arrow <b>&gt;<\/b> to access the CDN settings of the preferred website:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/05\/0b1e3c5d-1e67-4401-86ea-a43617ece57a.jpg\" alt=\"Access the CDN settings of the preferred website\"><\/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\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/05\/5b9d92b9-7146-47a6-b999-7dd659f00e7c.jpg\"><\/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":4,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/667\/revisions"}],"predecessor-version":[{"id":9861,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/667\/revisions\/9861"}],"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}]}}