{"id":1460,"date":"2019-02-08T10:36:00","date_gmt":"2019-02-08T10:36:00","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583470-how-to-password-protect-a-website-in-hostinger\/"},"modified":"2025-08-27T07:14:24","modified_gmt":"2025-08-27T07:14:24","slug":"1583470-how-to-password-protect-a-website-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583470-how-to-password-protect-a-website-in-hostinger\/","title":{"rendered":"How to Password-Protect a Website in Hostinger"},"content":{"rendered":"<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">If you use <b>Hostinger Website Builder<\/b>, refer to this article instead: <b><a href=\"\/support\/6899183-website-builder-how-to-password-protect-a-page\" target=\"_blank\" class=\"intercom-content-link\">Website Builder: How to Password-Protect a Page<\/a> &#128161; <\/b><\/p>\n<\/div><p class=\"no-margin\">The <b>Password Protect Directories<\/b> feature<b> <\/b>allows you to set a password to limit access to your website (or parts of it). <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">To access this feature, go to <b><a href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Websites<\/a><\/b> &rarr;<b> Manage<\/b>, search for <b>Password Protect Directories <\/b>on<b> <\/b>the left 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\/01123b88-d2cb-499d-a5c2-974509e58992.jpg\"><\/div><p class=\"no-margin\">Once in there, select which directory you would like to protect:<\/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\/813d6356-d44e-4990-9654-4a516f6270cb.jpg\"><\/div><p class=\"no-margin\">Assign a <b>username <\/b>and a <b>password <\/b>for it, and click on <b>Protect<\/b>:<\/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\/b6db68f2-53fd-44c5-bcf3-464fc13dc942.jpg\"><\/div><p class=\"no-margin\">All the password-protected directories will be listed on the same page below, where you will have the option to<b> remove the protection <\/b>by clicking on the bin icon:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/d246fe14-ad99-40d8-83cc-196926168f0f.jpg\"><\/div><p class=\"no-margin\">That&rsquo;s it! Now you know how to password-protect your website or a part of it &#128522;<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><b>NOTE<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\">In case of a forgotten password, remove the password protection on the directory and create it again<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Adding password protection for websites at Hostinger<\/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-1460","post","type-post","status-publish","format-standard","hentry","category-other"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583470-how-to-password-protect-a-website-in-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583470-como-proteger-con-contrasena-tu-sitio-web-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583470-comment-proteger-votre-site-web-par-un-mot-de-passe-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583470-cara-buat-password-untuk-melindungi-website-di-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583470-como-proteger-seu-site-com-senha-na-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583470------hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1460","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=1460"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1460\/revisions"}],"predecessor-version":[{"id":5208,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1460\/revisions\/5208"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}