{"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-10-29T14:44:39","modified_gmt":"2026-10-29T14:44: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 data-click-id=\"hgr-post-content-link-hostinger-cdn\" href=\"\/support\/7935917-hostinger-cdn-website-optimization\/\">Hostinger CDN<\/a>.<\/p>\n<p><strong>NOTE<\/strong><\/p>\n<ul>\n<li>IP blocking is not available on Agency Hosting plans.<\/li>\n<\/ul>\n<h2 id=\"h_2779a2c036\">Block an IP address<\/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\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-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 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>\n<div class=\"intercom-container\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16206\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35.png\/public\" alt=\"\" width=\"1159\" height=\"676\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35.png\/w=1159,fit=scale-down 1159w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1159px) 100vw, 1159px\" \/><\/div>\n<p class=\"no-margin\">And that\u2019s it!<\/p>\n<h2 id=\"h_4211e6e3a9\">Remove the IP block<\/h2>\n<p class=\"no-margin\">To remove an IP block, in <b>Hostinger dashboard <\/b>\u2192 <b><a data-click-id=\"hgr-post-content-link-websites-2\" 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 CDN 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 intercom-align-center\"><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 the <b>trash bin icon<\/b>, and then click on <b>Delete<\/b> to confirm:<\/p>\n<div class=\"intercom-container\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16207\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35_1.png\/public\" alt=\"\" width=\"1171\" height=\"618\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35_1.png\/w=1171,fit=scale-down 1171w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35_1.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35_1.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-35_1.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1171px) 100vw, 1171px\" \/><\/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-countries\" class=\"intercom-content-link\" href=\"\/support\/7931101-hostinger-cdn-how-to-block-countries\/\" target=\"_blank\" rel=\"noopener\">block countries<\/a><\/b> \ud83d\udca1<\/p>\n<\/div>\n<h2 id=\"h-blocking-multiple-ips-at-once-bulk-upload\" class=\"no-margin\"><b>Blocking multiple IPs at once (bulk upload)<\/b><\/h2>\n<p>Besides adding IPs one by one, you can also submit a list of IPs in a single action:<\/p>\n<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 \u2014 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":{"_content_updated_date":"","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":11,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/667\/revisions"}],"predecessor-version":[{"id":22647,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/667\/revisions\/22647"}],"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}]}}