{"id":576,"date":"2012-12-06T14:17:21","date_gmt":"2012-12-06T14:17:21","guid":{"rendered":"http:\/\/www.milesweb.com\/hosting-faqs\/?p=576"},"modified":"2026-02-27T15:22:32","modified_gmt":"2026-02-27T09:52:32","slug":"password-protect-directories","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/","title":{"rendered":"Password Protect Directories"},"content":{"rendered":"<p>Password Protect Directories allow you to require a username and password to access a folder or folders from the web. This can be very useful when you need to limit access to a certain part of your site. Using this option you can enable authentication to restricted areas of your website. Example, eCommerce, wordpress admin panel, sensitive data like reports, sales figures, etc. Without correct credentials normal users\/visitors won&#8217;t have access to these parts of your website. Password protect directories feature is available with our <strong>shared <\/strong><a title=\"cPanel hosting India\" href=\"https:\/\/www.milesweb.in\/hosting\/cpanel-hosting\" target=\"_blank\" rel=\"noopener\"><strong>cPanel hosting<\/strong><\/a> plans.<\/p>\n<p>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<p><a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2012\/12\/password-protect-directories.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-577\" title=\"password protect directories\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2012\/12\/password-protect-directories-300x192.jpg\" alt=\"\" width=\"300\" height=\"192\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2012\/12\/password-protect-directories-300x192.jpg 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2012\/12\/password-protect-directories.jpg 413w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\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.<\/p>\n<p>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<p>Image below will help you to configure the password protection as required.<\/p>\n<p><a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2012\/12\/password-protect-directories-config.bmp\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-582\" title=\"password protect directories config\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2012\/12\/password-protect-directories-config.bmp\" alt=\"\"><\/a><\/p>\n<p>When a user accesses the protected directory through the web, they will be prompted to enter a username and password. The name that you choose for the protect directory will appear as well. To enable password protection on any folder, check the option which says <strong>Password protect this directory<\/strong>. Name the protected area they way you want at <strong>Name the protected directory<\/strong>.<\/p>\n<p>This will just enable password protection. Now, it&#8217;s time to add the users as well. Enter the details of a user at <strong>Create User<\/strong>. Click on Add\/modify authorized user to add a new one.<\/p>\n<p>If you face any issues with password protection, contact our support team. They will have it fixed for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Password Protect Directories allow you to require a username and password to access a folder or folders from the web. This can be very useful when you need to limit access to a certain part of your site. Using this option you can enable authentication to restricted areas of your website. Example, eCommerce, wordpress admin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3056],"tags":[],"class_list":["post-576","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-other"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Password Protect Directories<\/title>\n<meta name=\"description\" content=\"Password Protect Directories allow you to require a username and password to access a folder or folders from the web.\" \/>\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.milesweb.in\/hosting-faqs\/password-protect-directories\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Password Protect Directories\" \/>\n<meta property=\"og:description\" content=\"Password Protect Directories allow you to require a username and password to access a folder or folders from the web.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2012-12-06T14:17:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-27T09:52:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2012\/12\/password-protect-directories.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"413\" \/>\n\t<meta property=\"og:image:height\" content=\"265\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/password-protect-directories\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/password-protect-directories\\\/\"},\"author\":{\"name\":\"Admin\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/90143c7d8df4b4de36b3dbb0bb272f69\"},\"headline\":\"Password Protect Directories\",\"datePublished\":\"2012-12-06T14:17:21+00:00\",\"dateModified\":\"2026-02-27T09:52:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/password-protect-directories\\\/\"},\"wordCount\":400,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/password-protect-directories\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2012\\\/12\\\/password-protect-directories-300x192.jpg\",\"articleSection\":[\"Other\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/password-protect-directories\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/password-protect-directories\\\/\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/password-protect-directories\\\/\",\"name\":\"Password Protect Directories\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/password-protect-directories\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/password-protect-directories\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2012\\\/12\\\/password-protect-directories-300x192.jpg\",\"datePublished\":\"2012-12-06T14:17:21+00:00\",\"dateModified\":\"2026-02-27T09:52:32+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/90143c7d8df4b4de36b3dbb0bb272f69\"},\"description\":\"Password Protect Directories allow you to require a username and password to access a folder or folders from the web.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/password-protect-directories\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/password-protect-directories\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/password-protect-directories\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2012\\\/12\\\/password-protect-directories.jpg\",\"contentUrl\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2012\\\/12\\\/password-protect-directories.jpg\",\"width\":\"413\",\"height\":\"265\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/password-protect-directories\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Password Protect Directories\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#website\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/90143c7d8df4b4de36b3dbb0bb272f69\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/MilesWeb-Logo-150x150.png\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/MilesWeb-Logo-150x150.png\",\"contentUrl\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/MilesWeb-Logo-150x150.png\",\"caption\":\"Admin\"},\"description\":\"With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Password Protect Directories","description":"Password Protect Directories allow you to require a username and password to access a folder or folders from the web.","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.milesweb.in\/hosting-faqs\/password-protect-directories\/","og_locale":"en_US","og_type":"article","og_title":"Password Protect Directories","og_description":"Password Protect Directories allow you to require a username and password to access a folder or folders from the web.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2012-12-06T14:17:21+00:00","article_modified_time":"2026-02-27T09:52:32+00:00","og_image":[{"width":413,"height":265,"url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2012\/12\/password-protect-directories.jpg","type":"image\/jpeg"}],"author":"Admin","twitter_misc":{"Written by":"Admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/"},"author":{"name":"Admin","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69"},"headline":"Password Protect Directories","datePublished":"2012-12-06T14:17:21+00:00","dateModified":"2026-02-27T09:52:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/"},"wordCount":400,"commentCount":0,"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2012\/12\/password-protect-directories-300x192.jpg","articleSection":["Other"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/","name":"Password Protect Directories","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2012\/12\/password-protect-directories-300x192.jpg","datePublished":"2012-12-06T14:17:21+00:00","dateModified":"2026-02-27T09:52:32+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69"},"description":"Password Protect Directories allow you to require a username and password to access a folder or folders from the web.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/#primaryimage","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2012\/12\/password-protect-directories.jpg","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2012\/12\/password-protect-directories.jpg","width":"413","height":"265"},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/password-protect-directories\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Password Protect Directories"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","caption":"Admin"},"description":"With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=576"}],"version-history":[{"count":10,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/576\/revisions"}],"predecessor-version":[{"id":16579,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/576\/revisions\/16579"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}