{"id":213,"date":"2016-06-10T11:08:33","date_gmt":"2016-06-10T11:08:33","guid":{"rendered":"http:\/\/cloudhost.com.ng\/blog\/?p=213"},"modified":"2016-06-10T11:08:33","modified_gmt":"2016-06-10T11:08:33","slug":"how-to-password-protect-directories-on-cpanel","status":"publish","type":"post","link":"https:\/\/cloudhost.com.ng\/blog\/how-to-password-protect-directories-on-cpanel\/","title":{"rendered":"How to Password-Protect Directories on cPanel"},"content":{"rendered":"<p><a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/images-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-218\" src=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/images-2.jpg\" alt=\"images (2)\" width=\"356\" height=\"316\" \/><\/a><\/p>\n<p>This is done via \u00a0Password Protect Directory which is also\u00a0called the Directory Privacy. With the Directory Privacy,\u00a0you can password protect directories in order to\u00a0limit access to certain resources on your website. Enable this feature to password-protect specific directories that you want to keep private from certain visitors. Any file that needs protection should be kept in a directory as only directories can be protected and not individual files.\u00a0Password protect affects a folder and its subfolders.\u00a0When you password protect a folder in cPanel, cPanel creates a rule which will require any visitor to provide the correct username and password to access the folder.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline\"><span style=\"color: #000000\"><strong>How to Password-Protect a Directory<\/strong><\/span><\/span><\/p>\n<ol>\n<li><a href=\"http:\/\/cloudhost.com.ng\/blog\/cant-login-from-cpanel\/\">Log into your cPanel<\/a>.<\/li>\n<li>Locate <span style=\"color: #333300\"><strong>Password Protect Directories<\/strong><\/span> icon under the <span style=\"color: #333300\"><strong>Security<\/strong><\/span> heading and click on it.<a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-91.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-215\" src=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-91-300x243.png\" alt=\"Screenshot (9)1\" width=\"300\" height=\"243\" srcset=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-91-300x243.png 300w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-91.png 509w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>Select\u00a0the directory you wish to navigate to in the pop-up window.\u00a0<a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-216\" src=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-11-300x163.png\" alt=\"Screenshot (11)\" width=\"335\" height=\"182\" srcset=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-11-300x163.png 300w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-11-624x339.png 624w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-11.png 758w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/a><\/li>\n<li>Now, click on the name of the folder you want to protect.<\/li>\n<li>A page of settings will appear which you will need to configure.\u00a0<a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-217\" src=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-13-300x229.png\" alt=\"Screenshot (13)\" width=\"341\" height=\"261\" srcset=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-13-300x229.png 300w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-13-624x477.png 624w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/06\/Screenshot-13.png 758w\" sizes=\"(max-width: 341px) 100vw, 341px\" \/><\/a>Here, check the &#8220;<span style=\"color: #333300\"><strong>Password protect this directory<\/strong><\/span>&#8221; box. You also need to fill in the name of the directory, it could be anything. This \u00a0will be the message shown to visitors when they try to access your files. Now Click <strong><span style=\"color: #333300\">Save<\/span><\/strong>.<\/li>\n<li>Click <span style=\"color: #333300\"><strong>Go Back<\/strong><\/span>. Fill in your username and password and click <span style=\"color: #333300\"><strong>Add Or Modify The Authorized User<\/strong><\/span>. When you visit your website on your server, you will be asked to log in. This shows that your directory has been password protected.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>However, if you decide you want\u00a0to make your folder open to the public, you just have to remove the password protect from your directory.<\/p>\n<p><strong style=\"color: #000000\"><span style=\"text-decoration: underline\">To Remove Password Protect From a Directory<\/span><\/strong><\/p>\n<ol>\n<li><a href=\"http:\/\/cloudhost.com.ng\/blog\/cant-login-from-cpanel\/\">Log into your cPanel account<\/a>.<\/li>\n<li>Locate <span style=\"color: #333300\"><strong>Password Protect Directories<\/strong><\/span> icon under the <span style=\"color: #333300\"><strong>Security<\/strong><\/span> heading and click on it.<\/li>\n<li>Select the\u00a0folder for which you want to remove password protection by clicking on the folder name.<\/li>\n<li>Under<span style=\"color: #333300\"><b>\u00a0Security Settings,\u00a0<\/b><span style=\"color: #333333\">uncheck the &#8220;<span style=\"color: #333300\"><strong>Password protect this directory<\/strong><\/span>&#8221; checkbox.<\/span><\/span><\/li>\n<li>Now click on <span style=\"color: #333300\"><strong>Save <\/strong><span style=\"color: #333333\">password protection is removed from this folder<\/span><\/span>. Now everyone can access your files.<\/li>\n<\/ol>\n<p>For further assistance, feel free to contact our <a href=\"http:\/\/cloudhost.com.ng\/support\/\">support centre<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is done via \u00a0Password Protect Directory which is also\u00a0called the Directory Privacy. With the Directory Privacy,\u00a0you can password protect directories in order to\u00a0limit access to certain resources on your website. Enable this feature to password-protect specific directories that you want to keep private from certain visitors. Any file that needs protection should be kept [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yst_prominent_words":[],"class_list":["post-213","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/213"}],"collection":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":3,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":221,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/213\/revisions\/221"}],"wp:attachment":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/tags?post=213"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}