{"id":100,"date":"2011-08-29T12:32:41","date_gmt":"2011-08-29T12:32:41","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2011\/08\/29\/how-do-i-password-protect-a-directory-in-my-control-panel-cpanel\/"},"modified":"2022-09-12T14:47:19","modified_gmt":"2022-09-12T18:47:19","slug":"password-protect-directory-cpanel","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/","title":{"rendered":"How to Add Password Protection for a Directory Using cPanel"},"content":{"rendered":"<p>At times, you may find it best practice to <strong>password protect a folder<\/strong> on your account. This can add an extra layer of protection to files you do <u>not<\/u> want the general public to have access to. <em>Password protecting a directory<\/em> can be easily accomplished using the option within cPanel. In this guide, you can learn how to <strong>add and remove password protection on a directory, using cPanel<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#how\">How Does Password Protection Work?<\/a><\/li><li><a href=\"#add-password\">Add Password Protection<\/a><\/li><li><a href=\"#remove-password\">Remove Password Protection<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how\">How Does Password Protection Work?<\/h2>\n\n\n\n<p>It is important to understand how password protection on a folder works. When you choose to <strong>password protect a directory in cPanel<\/strong>, cPanel creates a rule in your <i>.htaccess<\/i> file. This rule specifies that the <em>folder is protected<\/em> and the visitor will need to provide the proper username and password to log in and view the files within it.<\/p>\n\n\n\n<div class=\"alert alert-warning\" role=\"alert\">\n<p><b>IMPORTANT:<\/b> When a user attempts to access the protected directory through a browser, the site will prompt them to enter a username and password. The name that you choose for the protected directory will also display. Additionally, all the sub-directories that exist within the protected directory will be accessible, once authenticated.<\/p><\/div>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"jetpack-video-wrapper\"><div class=\"yt-rhQ4K7lKzF4\">\n\t<a class=\"play-video-rhQ4K7lKzF4\" style=\"position: relative; display: flex; flex-wrap: wrap; align-items: center; cursor: pointer;\">\n\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.ytimg.com\/vi_webp\/rhQ4K7lKzF4\/maxresdefault.webp\" width=\"1280\" height=\"720\" alt=\"How to Password Protect Directories in cPanel\" style=\"width: 100%; height: auto;\">\n\t\t<span class=\"fa fa-imh-play-circle imh-ds-icon play-circle\" style=\"position: absolute; display:block; font-size:150px; color: #c52228; opacity:0;\"><\/span>\n\t<\/a>\n<\/div><\/div>\n<\/div><figcaption>Don\u2019t have time to read our full article? Watch our walk-through video.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add-password\"><a name=\"add-password\"><\/a>Add Password Protection<\/h2>\n\n\n\n<ol class=\"article_list wp-block-list\"><li><a title=\"Click here to navigate to our guide and learn how to log into cPanel.\" rel=\"noopener noreferrer\" href=\"\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\" target=\"_blank\">Log into cPanel<\/a>.<\/li><li>Go to the <i style=\"font-size: revert; color: initial;\">Files<\/i><span style=\"font-size: revert; color: initial;\"> section and click on the <\/span><b style=\"font-size: revert; color: initial;\">Directory Privacy<\/b><span style=\"font-size: revert; color: initial;\"> icon.<\/span><br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"155\" class=\"wp-image-5025\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-privacy.png\" alt=\"cPanel Files section displayed with Directory Privacy icon highlighted\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-privacy.png 972w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-privacy-300x62.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-privacy-768x159.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li><li>Select the directory you want to password protect and then you will see the <b style=\"font-size: revert; color: initial;\">Set permissions for \u201c\/home\/exampl3\/directory\/\u201d<\/b><span style=\"font-size: revert; color: initial;\"> screen appear.<\/span><br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"873\" class=\"wp-image-14332\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-to-protect.png\" alt=\"Set permissions for directory screen displaying directory listing with public_html directory highlighted as selection.\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-to-protect.png 581w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-to-protect-258x300.png 258w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li><li>Click on the checkbox labeled \u201c<b>Password protect this directory:<\/b>\u201c.<\/li><li>Type a name for the folder you are trying to protect in the field labeled \u201c<b style=\"font-size: revert; color: initial;\">Enter a name for the protected directory:<\/b><span style=\"font-size: revert; color: initial;\">\u201c.<\/span><br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"324\" class=\"wp-image-5027\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_after-clicking-directory.png\" alt=\"Security Settings displayed with checkbox and name fields highlighted and filled in.\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_after-clicking-directory.png 739w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_after-clicking-directory-300x129.png 300w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li><li>Click the <b style=\"font-size: revert; color: initial;\">Save<\/b><span style=\"font-size: revert; color: initial;\"> button to save the name you have entered for the directory and option to password protect the directory.<\/span><br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"410\" class=\"wp-image-5028\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_save-passworded-directory.png\" alt=\"Security Settings displayed with Save button highlighted.\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_save-passworded-directory.png 682w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_save-passworded-directory-300x164.png 300w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li><li>Create a user to grant access to the protected directory by typing the credentials into the <b>Username<\/b>, <b>New Password<\/b> and <b>Confirm Password<\/b> fields.<\/li><li>Click <b style=\"font-size: revert; color: initial;\">Save<\/b><span style=\"font-size: revert; color: initial;\"> in order to save the credentials that you have entered.<\/span><br><br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"372\" class=\"wp-image-14335\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_create-user.png\" alt=\"Create User section displayed with Save button highlighted.\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_create-user.png 847w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_create-user-300x149.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_create-user-768x381.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><a name=\"remove-password\"><\/a><\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"remove-password\">Remove Password Protection<\/h2>\n\n\n\n<p>The steps to <em>remove password protection on a directory<\/em> are fairly quick and simple. One reason you might want to password protect a directory and then remove the protection is for testing purposes. Or, if you are finally ready to make the folder open to the public, then you can <strong>remove the password protection<\/strong> so that everyone can access the files in the directory. The instructions below are the steps for <strong>removing the password protection<\/strong>.<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\"><li><a title=\"Click here to navigate to our Support Center guide and learn how to log into your cPanel.\" href=\"\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\" target=\"_blank\" rel=\"noopener noreferrer\">Log into your cPanel<\/a>.<\/li><li>Scroll down to the <i>Files<\/i> section in your cPanel and then click the <strong>Directory Privacy<\/strong> icon.<\/li><li>Select the directory from the list of folders that you want to <em>remove password protection for<\/em>. The directory should appear with a lock in front of it if it is currently password protected.<\/li><li>Uncheck the box that says \u201c<b>Password protect this directory<\/b>\u201c.<\/li><li>Finally, click the <b>Save<\/b> button.<\/li><\/ol>\n\n\n\n<p>If you have further questions or need further assistance please feel free to <a title=\"Click here to navigate to our guide and learn how to contact our Live Technical Support Team.\" href=\"\/support\/amp\/how-to-get-great-technical-support\/\" target=\"_blank\" rel=\"noopener noreferrer\">contact our Live Technical Support<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At times, you may find it best practice to password protect a folder on your account. This can add an extra layer of protection to files you do not want the general public to have access to. Password protecting a directory can be easily accomplished using the option within cPanel. In this guide, you can<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/\"> Read More ><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[51,4299],"tags":[],"class_list":["post-100","post","type-post","status-publish","format-standard","hentry","category-cpanel","category-security"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Add Password Protection for a Directory (Folder) Using cPanel<\/title>\n<meta name=\"description\" content=\"In this guide, you can learn how to password protect a directory using cPanel.\" \/>\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.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Password Protection for a Directory (Folder) Using cPanel\" \/>\n<meta property=\"og:description\" content=\"In this guide, you can learn how to password protect a directory using cPanel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2011-08-29T12:32:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-12T18:47:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-privacy.png\" \/>\n<meta name=\"author\" content=\"Brad Markle\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brad Markle\" \/>\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.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/\"},\"author\":{\"name\":\"Brad Markle\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf\"},\"headline\":\"How to Add Password Protection for a Directory Using cPanel\",\"datePublished\":\"2011-08-29T12:32:41+00:00\",\"dateModified\":\"2022-09-12T18:47:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/\"},\"wordCount\":513,\"commentCount\":16,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-privacy.png\",\"articleSection\":[\"cPanel\",\"Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/\",\"name\":\"How to Add Password Protection for a Directory (Folder) Using cPanel\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-privacy.png\",\"datePublished\":\"2011-08-29T12:32:41+00:00\",\"dateModified\":\"2022-09-12T18:47:19+00:00\",\"description\":\"In this guide, you can learn how to password protect a directory using cPanel.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-privacy.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-privacy.png\",\"width\":972,\"height\":201,\"caption\":\"cPanel Files section displayed with Directory Privacy icon highlighted\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add Password Protection for a Directory Using cPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf\",\"name\":\"Brad Markle\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/bradm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add Password Protection for a Directory (Folder) Using cPanel","description":"In this guide, you can learn how to password protect a directory using cPanel.","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.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Password Protection for a Directory (Folder) Using cPanel","og_description":"In this guide, you can learn how to password protect a directory using cPanel.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2011-08-29T12:32:41+00:00","article_modified_time":"2022-09-12T18:47:19+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-privacy.png","type":"","width":"","height":""}],"author":"Brad Markle","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Brad Markle","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/"},"author":{"name":"Brad Markle","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf"},"headline":"How to Add Password Protection for a Directory Using cPanel","datePublished":"2011-08-29T12:32:41+00:00","dateModified":"2022-09-12T18:47:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/"},"wordCount":513,"commentCount":16,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-privacy.png","articleSection":["cPanel","Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/","name":"How to Add Password Protection for a Directory (Folder) Using cPanel","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-privacy.png","datePublished":"2011-08-29T12:32:41+00:00","dateModified":"2022-09-12T18:47:19+00:00","description":"In this guide, you can learn how to password protect a directory using cPanel.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-privacy.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2011\/08\/pass_select-directory-privacy.png","width":972,"height":201,"caption":"cPanel Files section displayed with Directory Privacy icon highlighted"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/password-protect-directory-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Add Password Protection for a Directory Using cPanel"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf","name":"Brad Markle","url":"https:\/\/www.inmotionhosting.com\/support\/author\/bradm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=100"}],"version-history":[{"count":6,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":100367,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/100\/revisions\/100367"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}