{"id":11581,"date":"2024-05-04T09:37:49","date_gmt":"2024-05-04T09:37:49","guid":{"rendered":"https:\/\/hostvento.com\/kb\/web-hosting\/getting-started-guide\/shared-hosting-quick-start-guide\/password-protect-directories\/"},"modified":"2024-06-14T09:33:12","modified_gmt":"2024-06-14T09:33:12","slug":"password-protect-directories","status":"publish","type":"docs","link":"https:\/\/www.hostvento.com\/kb\/docs\/hosting-faqs\/password-protect-directories\/","title":{"rendered":"Password protect directories"},"content":{"rendered":"\n<p>You can make a folder or folders on the web accessible only with a username and password by using password-protected directories. When you need to restrict access to a specific area of your website, this might be incredibly helpful. You can enable authentication to access restricted portions of your website by using this option. Examples include the WordPress admin panel, eCommerce, and sensitive data such as sales numbers and reports. Normal users and visitors will not be able to access these areas of your website without the proper credentials. We offer password-protected directories as part of our shared cPanel hosting packages.<br>Login to your cPanel account to enable Password protect directories under Security tab. A pop window will open as below using which you can select the main, sub &amp; addon domain on which this option has to be enabled. You can check the option if you want the next screen to show hidden files\/folders OR to skip this window next time you visit to configure it.<\/p>\n\n\n\n<p>It will then show you window under which all folders will be listed. Password protection can be enabled on a folder and not a file. Click on the folder name for which you wish to enable password protection.<br>Password protection allows you to require a username and password to access a folder within your site from the web. When password protecting a folder, there are a few things to remember. Protecting a folder will protect all folders within that folder. Also, you will need to create users who can access the protected directory. You can give the password protected directory any name, no matter what the actual directory is called.<\/p>\n\n\n\n<p>Image below will help you to configure the password protection as required.<br><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"750\" height=\"466\" src=\"https:\/\/hostvento.com\/kb\/wp-content\/uploads\/2024\/05\/image-1.png\" alt=\"\" class=\"wp-image-11585\" srcset=\"https:\/\/www.hostvento.com\/kb\/wp-content\/uploads\/2024\/05\/image-1.png 750w, https:\/\/www.hostvento.com\/kb\/wp-content\/uploads\/2024\/05\/image-1-300x186.webp 300w, https:\/\/www.hostvento.com\/kb\/wp-content\/uploads\/2024\/05\/image-1-20x12.webp 20w, https:\/\/www.hostvento.com\/kb\/wp-content\/uploads\/2024\/05\/image-1-32x20.webp 32w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<p>A username and password must be entered when a user enters the protected directory via the internet. Additionally, the name you select for the protected directory will be displayed. Select the &#8220;Password protect this directory&#8221; option to make any folder password-protected. Give the protected area whatever name you choose. Give the protected directory a name.<\/p>\n\n\n\n<p>This will just enable password protection. Now, it\u2019s time to add the users as well. Enter the details of a user at Create User. Click on Add\/modify authorized user to add a new one.<\/p>\n\n\n\n<p>If you face any issues with password protection, contact our <a href=\"https:\/\/secure.hostvento.com\/\" target=\"_blank\" rel=\"noopener\"><strong>Website Security service<\/strong><\/a> Team . They will have it fixed for you.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can make a folder or folders on the web accessible only with a username and password by using password-protected directories. When you need to restrict access to a specific area of your website, this might be incredibly helpful. You can enable authentication to access restricted portions of your website by using this option. Examples [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":23377,"menu_order":668,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-11581","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/11581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/comments?post=11581"}],"version-history":[{"count":4,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/11581\/revisions"}],"predecessor-version":[{"id":20401,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/11581\/revisions\/20401"}],"up":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/23377"}],"wp:attachment":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/media?parent=11581"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=11581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}