{"id":1457,"date":"2019-02-08T10:36:00","date_gmt":"2019-02-08T10:36:00","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583474-how-to-allow-or-block-a-specific-ip-address-for-your-website-in-hostinger\/"},"modified":"2026-03-16T12:12:16","modified_gmt":"2026-03-16T12:12:16","slug":"1583474-how-to-allow-or-block-a-specific-ip-address-for-your-website-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583474-how-to-allow-or-block-a-specific-ip-address-for-your-website-in-hostinger\/","title":{"rendered":"How to Allow or Block a Specific IP Address for Your Website in Hostinger"},"content":{"rendered":"<p class=\"no-margin\">You can allow or prevent some IP addresses or even whole countries from accessing your website by using one of the following methods: <\/p><ol>\n<li>\n<p class=\"no-margin\">Via <b><a href=\"#how-to-manage-accesses-with-an-ip-manager\" target=\"_blank\" class=\"intercom-content-link\">IP Manager<\/a><\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Adding some lines of code on your<b> <a href=\"\/support\/1583355-how-to-block-ip-using-htaccess-file\" target=\"_blank\" class=\"intercom-content-link\">.htaccess<\/a> <\/b>file<\/p>\n<\/li>\n<\/ol><h2 id=\"how-to-manage-accesses-with-an-ip-manager\">How to Manage Access With the IP Manager<\/h2><p class=\"no-margin\">Go to <b><a href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Websites<\/a> &rarr; Manage<\/b>, search for <b>IP Manager<\/b> on the sidebar and click on it: <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/8da40c37-09fa-48a2-8918-d0e6a03f183a.jpg\"><\/div><p class=\"no-margin\">There, you will be able to find two options &ndash; add IPs to allow and block access to your website: <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/aee4a0e7-d54c-4821-afd4-8b22d675becf.jpg\"><\/div><p class=\"no-margin\">Just add an IP you wish to create rules for, leave a note (optional), and click on <b>Add<\/b>. The list of all the rules is available below:   <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/0ab45e29-0ade-471f-b763-a818cf4e1070.jpg\"><\/div><p class=\"no-margin\">With the IP Manager, you can set rules for specific IP addresses. If you want to set rules for a range of IP addresses, you can do it via <b><a href=\"\/support\/1583355-how-to-block-ip-using-htaccess-file\" target=\"_blank\" class=\"intercom-content-link\">.htaccess<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><b>NOTE<\/b>: <\/p><ul>\n<li>\n<p class=\"no-margin\">Creating rules in hPanel adds specific lines to your .htaccess file. Make sure not to delete them:<\/p>\n<p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"https:\/\/blog.hostinger.io\/pt\/support\/wp-content\/uploads\/sites\/59\/2022\/10\/c10fa1ba-97d8-4ac4-a849-9c3dbc9e3968.jpg\"><\/div>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>IPs whitelisting\/blocking via Hostinger\u2019s hPanel, using IP Manager<\/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":[263],"tags":[],"class_list":["post-1457","post","type-post","status-publish","format-standard","hentry","category-other"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583474-how-to-allow-or-block-a-specific-ip-address-for-your-website-in-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583474-como-permitir-o-bloquear-una-direccion-ip-especifica-para-tu-sitio-web-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583474-comment-autoriser-ou-bloquer-une-adresse-ip-specifique-pour-votre-site-web-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583474-bagaimana-cara-mengizinkan-atau-memblokir-alamat-ip-spesifik-untuk-mengakses-website-saya-di-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583474-como-permitir-ou-bloquear-um-endereco-ip-especifico-na-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583474-----\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1457","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=1457"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1457\/revisions"}],"predecessor-version":[{"id":5218,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1457\/revisions\/5218"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}