{"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":"2026-05-08T13:02:56","modified_gmt":"2026-05-08T13:02:56","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":"
\n

If you use Hostinger Website Builder<\/b>, refer to this article instead: Website Builder: How to Password-Protect a Page<\/a> 💡 <\/b><\/p>\n<\/div>

The Password Protect Directories<\/b> feature <\/b>allows you to set a password to limit access to your website (or parts of it). <\/p>

\n<\/p>

To access this feature, go to Websites<\/a><\/b> → Manage<\/b>, search for Password Protect Directories <\/b>on <\/b>the left sidebar, and click on it:<\/p>

\n<\/p>

\"Hostinger<\/div>

Once in there, select which directory you would like to protect:<\/p>

\n<\/p>

\"Hostinger<\/div>

Assign a username <\/b>and a password <\/b>for it, and click on Protect<\/b>:<\/p>

\n<\/p>

\"Hostinger<\/div>

All the password-protected directories will be listed on the same page below, where you will have the option to remove the protection <\/b>by clicking on the bin icon:<\/p>

\n<\/p>

\"Hostinger<\/div>

That’s it! Now you know how to password-protect your website or a part of it 😊<\/p>

\n<\/p>

NOTE<\/b><\/p>

    \n
  • \n

    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":"

    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}]}}