{"id":27178,"date":"2018-06-18T03:32:09","date_gmt":"2018-06-18T08:32:09","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=27178"},"modified":"2022-06-03T03:34:54","modified_gmt":"2022-06-03T08:34:54","slug":"how-to-password-protect-directories-in-cpanel","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/","title":{"rendered":"How to Password Protect Directories in cPanel"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-27190\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Password-Protect-Directories-in-cPanel.jpg\" alt=\"How to Password Protect Directories in cPanel\" width=\"742\" height=\"371\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Password-Protect-Directories-in-cPanel.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Password-Protect-Directories-in-cPanel-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Password-Protect-Directories-in-cPanel-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>Normally, if you create a folder on your site, you can access all the files inside it just by visiting the file&#8217;s URL. Sometimes however, you want to password protect directories in cPanel &#8211; either you&#8217;re testing a new design that you&#8217;re not ready to show the world, or it&#8217;s a staging area for your site. Or maybe you just want to prevent unauthorized access to sensitive parts your site. Like the &#8220;wp-admin&#8221; area of WordPress for example.<!--more--><\/p>\n<p>Whatever the reason, this tutorial will show you how to achieve this. First, I&#8217;ll create a test folder and file on my site via FTP:<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-27179 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Password-Protect-Directories-in-cPanel.jpg\" alt=\"Password Protect Directories in cPanel\" width=\"700\" height=\"313\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Password-Protect-Directories-in-cPanel.jpg 700w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Password-Protect-Directories-in-cPanel-150x67.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Password-Protect-Directories-in-cPanel-300x134.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>As you can see, I can view this file simply by typing in the URL as shown below:<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-27180 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-use-cPanel-to-protect-directories-with-a-password.jpg\" alt=\"How to use cPanel to protect directories with a password\" width=\"700\" height=\"266\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-use-cPanel-to-protect-directories-with-a-password.jpg 700w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-use-cPanel-to-protect-directories-with-a-password-150x57.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-use-cPanel-to-protect-directories-with-a-password-300x114.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>Now we&#8217;ll see how to protect this folder with a password.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ec7ce59be78\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ec7ce59be78\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/#Step-1-Log-into-cPanel-and-Choose-the-%E2%80%9CPassword-Protect%E2%80%9D-Icon\" >Step 1: Log into cPanel and Choose the &#8220;Password Protect&#8221; Icon<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/#Step-2-Choose-the-Folder-to-Password-Protect\" >Step 2: Choose the Folder to Password Protect<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/#Step-3-Give-the-Folder-a-Name\" >Step 3: Give the Folder a Name<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/#Step-4-Create-Usernames-and-Passwords\" >Step 4: Create Usernames and Passwords<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/#Step-5-Testing-to-See-if-it-Works\" >Step 5: Testing to See if it Works<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"western\"><span class=\"ez-toc-section\" id=\"Step-1-Log-into-cPanel-and-Choose-the-%E2%80%9CPassword-Protect%E2%80%9D-Icon\"><\/span>Step 1: Log into cPanel and Choose the &#8220;Password Protect&#8221; Icon<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Logging into cPanel is easy. Use either:<\/p>\n<p>https:\/\/<i>[yourdomainname]<\/i>:2083<br \/>\nor<br \/>\nhttps:\/\/[yourdomainname]\/cpanel<\/p>\n<p>Type in the login credentials for your site and scroll down till you reach the &#8220;Security&#8221; section and click on the icon labelled &#8220;Password Protect Directories&#8221; as shown here:<br \/>\n<img decoding=\"async\" class=\"size-full wp-image-27181 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Add-Password-Protection-for-a-Directory-Using-cPanel.jpg\" alt=\"How to Add Password Protection for a Directory Using cPanel\" width=\"700\" height=\"347\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Add-Password-Protection-for-a-Directory-Using-cPanel.jpg 700w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Add-Password-Protection-for-a-Directory-Using-cPanel-150x74.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Add-Password-Protection-for-a-Directory-Using-cPanel-300x149.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<h2 class=\"western\"><span class=\"ez-toc-section\" id=\"Step-2-Choose-the-Folder-to-Password-Protect\"><\/span>Step 2: Choose the Folder to Password Protect<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This will bring up a dialogue box asking if you want to open your root folder, or the folder of one of your sites.<br \/>\n<img decoding=\"async\" class=\"size-full wp-image-27182 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-To-Password-Protect-a-Directory-in-cPanel.jpg\" alt=\"How To Password Protect a Directory in cPanel\" width=\"700\" height=\"446\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-To-Password-Protect-a-Directory-in-cPanel.jpg 700w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-To-Password-Protect-a-Directory-in-cPanel-150x96.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-To-Password-Protect-a-Directory-in-cPanel-300x191.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>In our example, We&#8217;ve placed the directory in the root folder so we choose the first option. But if you&#8217;ve created a new site to which you want to restrict access, then it&#8217;s easier to go directly to the folder. Whatever you choose, the next screen will show you a list of folders in your selected directory like this:<br \/>\n<img decoding=\"async\" class=\"size-full wp-image-27183 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-password-protect-files-and-directories-with-cPanel.jpg\" alt=\"How to password protect files and directories with cPanel\" width=\"700\" height=\"570\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-password-protect-files-and-directories-with-cPanel.jpg 700w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-password-protect-files-and-directories-with-cPanel-150x122.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-password-protect-files-and-directories-with-cPanel-300x244.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>Find the folder you want to protect and click it.<\/p>\n<h2 class=\"western\"><span class=\"ez-toc-section\" id=\"Step-3-Give-the-Folder-a-Name\"><\/span>Step 3: Give the Folder a Name<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In the next screen, tick the box labelled &#8220;Password protect this directory&#8221;. Also, give the folder a name that is distinct from the actual folder name:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-27184\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/password-protect-directories-with-cpanel.jpg\" alt=\"password protect directories with cpanel\" width=\"700\" height=\"331\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/password-protect-directories-with-cpanel.jpg 700w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/password-protect-directories-with-cpanel-150x71.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/password-protect-directories-with-cpanel-300x142.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><br \/>\nNow click the &#8220;Save&#8221; button. This will lead you to a new screen telling you that the access permissions for the folder have been saved. Hit &#8220;Go Back&#8221; and you&#8217;ll be sent back to the previous screen. The folder is now inaccessible from the public web. Right now however, <i>no one<\/i> can view the files inside it! We need to create a username and password to allow people through.<\/p>\n<h2 class=\"western\"><span class=\"ez-toc-section\" id=\"Step-4-Create-Usernames-and-Passwords\"><\/span>Step 4: Create Usernames and Passwords<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now under &#8220;Create User&#8221;, enter a username and password which will be used to access the folder and its contents:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-27185\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/cPanel-protect-a-directory-with-password.jpg\" alt=\"cPanel - protect a directory with password\" width=\"700\" height=\"411\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/cPanel-protect-a-directory-with-password.jpg 700w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/cPanel-protect-a-directory-with-password-150x88.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/cPanel-protect-a-directory-with-password-300x176.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><br \/>\nIn the image above, I haven&#8217;t created a very strong password because this is just for demo purposes. In practice however, make sure that the strength bar is &#8220;green&#8221;. Even better, click the &#8220;Password Generator&#8221; button which will create a strong password for you. Once you&#8217;ve copied and pasted the password into both fields, click the button &#8220;Add or Modify The Authorized User&#8221;.<br \/>\nThis will bring up a notification that the user has been created. It&#8217;ll also show you the username and password in plain text on the screen so you can confirm it (It&#8217;s another matter whether or not passwords should be shown on the screen in plain text!).<\/p>\n<p>If you click &#8220;Go Back&#8221;, you&#8217;ll see a new section called &#8220;Authorized Users:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-27186\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Password-Protect-Directories-cPanel.jpg\" alt=\"Password Protect Directories - cPanel\" width=\"700\" height=\"378\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Password-Protect-Directories-cPanel.jpg 700w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Password-Protect-Directories-cPanel-150x81.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/Password-Protect-Directories-cPanel-300x162.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>You can create multiple username\/password pairs. This might be useful to give someone temporary access to your site. Once their work is done, you can just delete their username from the authorized users list and you&#8217;re protected again!<\/p>\n<p>If you open the list of folders, this time you&#8217;ll see a &#8220;lock&#8221; icon next to the directory we just protected with a password:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-27187\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/password-protect-directories-using-cpanel.jpg\" alt=\"password protect directories using cpanel\" width=\"700\" height=\"486\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/password-protect-directories-using-cpanel.jpg 700w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/password-protect-directories-using-cpanel-150x104.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/password-protect-directories-using-cpanel-300x208.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<h2 class=\"western\"><span class=\"ez-toc-section\" id=\"Step-5-Testing-to-See-if-it-Works\"><\/span>Step 5: Testing to See if it Works<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now that our folder is password protected, let&#8217;s navigate to the file again and see what happens:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-27189\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/how-to-protect-files-and-folders-in-cPanel.jpg\" alt=\"how to protect files and folders in cPanel\" width=\"700\" height=\"266\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/how-to-protect-files-and-folders-in-cPanel.jpg 700w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/how-to-protect-files-and-folders-in-cPanel-150x57.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/how-to-protect-files-and-folders-in-cPanel-300x114.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>As you can see, it now shows me a pop up asking for my login credentials. We&#8217;ve successfully protected our folder with a password from cPanel!<\/p>\n<hr \/>\n<p>Of course, you don\u2019t have to Password Protect Directories in cPanel if you use one of our\u00a0<a href=\"https:\/\/www.rosehosting.com\/cpanel-hosting.html\">Blazing-Fast cPanel Servers<\/a>,\u00a0in which case you can simply ask our expert Linux admins to password protect any files or folders in cPanel for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p>PS. If you liked this post, on how to password protect directories in cPanel, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Normally, if you create a folder on your site, you can access all the files inside it just by visiting &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Password Protect Directories in cPanel\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/#more-27178\" aria-label=\"Read more about How to Password Protect Directories in cPanel\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":27190,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1708,1703,13],"tags":[46,75],"class_list":["post-27178","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-control-panels","category-security","category-tutorials","tag-cpanel","tag-password-protect","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Password Protect Directories in cPanel | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Password Protect Directories in cPanel | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Password Protect Directories in cPanel\" \/>\n<meta property=\"og:description\" content=\"How to Password Protect Directories in cPanel | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-18T08:32:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:34:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Password-Protect-Directories-in-cPanel.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-password-protect-directories-in-cpanel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-password-protect-directories-in-cpanel\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Password Protect Directories in cPanel\",\"datePublished\":\"2018-06-18T08:32:09+00:00\",\"dateModified\":\"2022-06-03T08:34:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-password-protect-directories-in-cpanel\\\/\"},\"wordCount\":763,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-password-protect-directories-in-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Password-Protect-Directories-in-cPanel.jpg\",\"keywords\":[\"cPanel\",\"password protect\"],\"articleSection\":[\"Control Panels\",\"Security\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-password-protect-directories-in-cpanel\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-password-protect-directories-in-cpanel\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-password-protect-directories-in-cpanel\\\/\",\"name\":\"How to Password Protect Directories in cPanel | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-password-protect-directories-in-cpanel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-password-protect-directories-in-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Password-Protect-Directories-in-cPanel.jpg\",\"datePublished\":\"2018-06-18T08:32:09+00:00\",\"dateModified\":\"2022-06-03T08:34:54+00:00\",\"description\":\"How to Password Protect Directories in cPanel | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-password-protect-directories-in-cpanel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-password-protect-directories-in-cpanel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-password-protect-directories-in-cpanel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Password-Protect-Directories-in-cPanel.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Password-Protect-Directories-in-cPanel.jpg\",\"width\":742,\"height\":371,\"caption\":\"How to Password Protect Directories in cPanel\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-password-protect-directories-in-cpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Password Protect Directories in cPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Password Protect Directories in cPanel | RoseHosting","description":"How to Password Protect Directories in cPanel | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"How to Password Protect Directories in cPanel","og_description":"How to Password Protect Directories in cPanel | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-06-18T08:32:09+00:00","article_modified_time":"2022-06-03T08:34:54+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Password-Protect-Directories-in-cPanel.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Password Protect Directories in cPanel","datePublished":"2018-06-18T08:32:09+00:00","dateModified":"2022-06-03T08:34:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/"},"wordCount":763,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Password-Protect-Directories-in-cPanel.jpg","keywords":["cPanel","password protect"],"articleSection":["Control Panels","Security","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/","name":"How to Password Protect Directories in cPanel | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Password-Protect-Directories-in-cPanel.jpg","datePublished":"2018-06-18T08:32:09+00:00","dateModified":"2022-06-03T08:34:54+00:00","description":"How to Password Protect Directories in cPanel | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Password-Protect-Directories-in-cPanel.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Password-Protect-Directories-in-cPanel.jpg","width":742,"height":371,"caption":"How to Password Protect Directories in cPanel"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-password-protect-directories-in-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Password Protect Directories in cPanel"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=27178"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27178\/revisions"}],"predecessor-version":[{"id":41793,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27178\/revisions\/41793"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/27190"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=27178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=27178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=27178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}