{"id":370,"date":"2021-04-11T07:02:16","date_gmt":"2021-04-11T07:02:16","guid":{"rendered":"https:\/\/hostandtech.com\/help\/?p=370"},"modified":"2022-02-28T17:28:34","modified_gmt":"2022-02-28T17:28:34","slug":"how-to-protect-files-and-directories-using-cpanel-directory-privacy","status":"publish","type":"post","link":"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/","title":{"rendered":"How To Protect Files And Directories Using cPanel Directory Privacy"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"370\" class=\"elementor elementor-370\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-caddbfa elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"caddbfa\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-efd3cf9\" data-id=\"efd3cf9\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-549df8e elementor-widget elementor-widget-text-editor\" data-id=\"549df8e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In this article we will learn you how to configure directory privacy in <strong><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"https:\/\/hostandtech.com\/help\/tag\/cpanel\/\" target=\"_blank\" rel=\"noopener\">cPanel<\/a><\/span><\/strong> to protect specific directories with a password.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-129dacc8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"129dacc8\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-12b5bafa\" data-id=\"12b5bafa\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bb57cbc elementor-widget elementor-widget-text-editor\" data-id=\"bb57cbc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2>cPanel Directory Privacy<\/h2><p>Directory Privacy is a tool included in the cPanel, which enable you to protect files or directories by using username and password. For example, Visitors to password-protected directories must enter a username and password to view the directory&#8217;s contents.<\/p><h2 id=\"Adding-password-protection-to-a-directory\">How To Add Password Protection to a Directory<\/h2><p>When you add password protection to a directory, you provide a name for the directory that will appear in users&#8217; web browsers when they are prompted for a username and password. Then you create users and passwords to specify who can access the directory.<\/p><p>To add password protection to a directory, follow these steps:<\/p><ul><li>Firstly, Log in to cPanel.<\/li><li>Click Directory Privacy, in the FILES section of the cPanel home screen.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8b9a828 elementor-widget elementor-widget-image\" data-id=\"8b9a828\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/cPanel-directory-privacy.png\" title=\"\" alt=\"cPanel directory privacy\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ce0412f elementor-widget elementor-widget-text-editor\" data-id=\"ce0412f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul>\n<li>After that, click the name of the directory that you want to protect. Then click <strong>Edit.<\/strong><\/li>\n<\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a965f97 elementor-widget elementor-widget-image\" data-id=\"a965f97\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"768\" height=\"285\" src=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/edit-directory-privacy-768x285.png\" class=\"attachment-medium_large size-medium_large wp-image-13835\" alt=\"\" srcset=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/edit-directory-privacy-768x285.png 768w, https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/edit-directory-privacy-300x111.png 300w, https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/edit-directory-privacy-1024x381.png 1024w, https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/edit-directory-privacy.png 1262w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f68c383 elementor-widget elementor-widget-text-editor\" data-id=\"f68c383\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul>\n<li>Under\u00a0<span class=\"UI\">Security Settings<\/span>, select the\u00a0<span class=\"checkbox\">Password protect this directory<\/span>\u00a0check box.<\/li>\n<li>Type a name for the protected directory, in the <span class=\"textbox\">Enter a name for the protected directory<\/span> text box.<\/li>\n<li>Click\u00a0<span class=\"button\">Save<\/span>.<\/li>\n<\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c7e5dd6 elementor-widget elementor-widget-image\" data-id=\"c7e5dd6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"768\" height=\"253\" src=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/password-directory-privacy-768x253.png\" class=\"attachment-medium_large size-medium_large wp-image-13836\" alt=\"\" srcset=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/password-directory-privacy-768x253.png 768w, https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/password-directory-privacy-300x99.png 300w, https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/password-directory-privacy-1024x337.png 1024w, https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/password-directory-privacy.png 1423w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4f2cd16 elementor-widget elementor-widget-text-editor\" data-id=\"4f2cd16\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li>Under\u00a0<span class=\"UI\">Create User<\/span>, type a username in the\u00a0<span class=\"textbox\">Username<\/span>\u00a0text box.<\/li><li>In the\u00a0<span class=\"textbox\">New Password<\/span>\u00a0text box, type the user&#8217;s password.<\/li><li>Retype the user&#8217;s password, in the <span class=\"textbox\">Confirm Password<\/span> text box.<\/li><li>Click\u00a0<span class=\"button\">Save<\/span>.\u00a0cPanel adds password protection to the directory.<\/li><\/ul><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bb330e7 elementor-widget elementor-widget-text-editor\" data-id=\"bb330e7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Watch the tutorial below,<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-880a2c2 elementor-widget elementor-widget-video\" data-id=\"880a2c2\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/fIguFgLyQ3s&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7086290 elementor-widget elementor-widget-text-editor\" data-id=\"7086290\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>If you have further questions please feel free to contact our <a href=\"https:\/\/www.hostandtech.com\/client\/?ccce=contact\" target=\"_blank\" rel=\"noopener\">Technical Support<\/a>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dd8cfd7 elementor-widget elementor-widget-elementor-faq-schema\" data-id=\"dd8cfd7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"elementor-faq-schema.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t                                    <script type=\"application\/ld+json\">\n                    {\n                        \"@context\": \"https:\/\/schema.org\",\n                        \"@type\": \"FAQPage\",\n                        \"mainEntity\": [\n                         {\n                            \"@type\": \"Question\",\n                            \"name\": \"What Is cPanel Directory Privacy?\",\n                            \"acceptedAnswer\": {\n                                \"@type\": \"Answer\",\n                                \"text\": \"&lt;p&gt;Directory Privacy is a tool included in the cPanel, which enable you to protect files or directories by using username and password. For example, Visitors to password-protected directories must enter a username and password to view the directory\u2019s contents.&lt;\/p&gt;\n&lt;p&gt;\u00a0&lt;\/p&gt;\"\n                            }\n                                                    },\n                                             {\n                            \"@type\": \"Question\",\n                            \"name\": \"How Do I Add Password Protection To a Directory?\",\n                            \"acceptedAnswer\": {\n                                \"@type\": \"Answer\",\n                                \"text\": \"&lt;ul&gt;\n \t&lt;li&gt;Firstly, Log in to cPanel.&lt;\/li&gt;\n \t&lt;li&gt;Click\u00a0Directory Privacy, in the FILES\u00a0section of the cPanel home screen.&lt;\/li&gt;\n \t&lt;li&gt;After that, click the name of the directory that you want to protect. Then click\u00a0&lt;strong&gt;Edit.&lt;\/strong&gt;&lt;\/li&gt;\n \t&lt;li&gt;Under\u00a0Security Settings, select the\u00a0Password protect this directory\u00a0check box.&lt;\/li&gt;\n \t&lt;li&gt;Type a name for the protected directory, in the\u00a0Enter a name for the protected directory\u00a0text box.&lt;\/li&gt;\n \t&lt;li&gt;Click\u00a0Save.&lt;\/li&gt;\n \t&lt;li&gt;Under\u00a0Create User, type a username in the\u00a0Username\u00a0text box.&lt;\/li&gt;\n \t&lt;li&gt;In the\u00a0New Password\u00a0text box, type the user\u2019s password.&lt;\/li&gt;\n \t&lt;li&gt;Retype the user\u2019s password, in the\u00a0Confirm Password\u00a0text box.&lt;\/li&gt;\n \t&lt;li&gt;Click\u00a0Save.\u00a0cPanel adds password protection to the directory.&lt;\/li&gt;\n&lt;\/ul&gt;\"\n                            }\n                                                    }\n                    ]\n                    }\n                <\/script>\n                    \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>In this article we will learn you how to configure directory privacy in cPanel to protect specific directories with a password. cPanel Directory Privacy Directory Privacy is a tool included in the cPanel, which enable you to protect files or directories by using username and password. For example, Visitors to password-protected directories must enter a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[260],"tags":[2],"class_list":["post-370","post","type-post","status-publish","format-standard","hentry","category-whm-cpanel","tag-cpanel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using cPanel Directory Privacy Password To Protect Files And Directories<\/title>\n<meta name=\"description\" content=\"Use cPanel directory privacy to protect the directory, where users must enter a username and password to view the contents of the directory\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using cPanel Directory Privacy Password To Protect Files And Directories\" \/>\n<meta property=\"og:description\" content=\"Use cPanel directory privacy to protect the directory, where users must enter a username and password to view the contents of the directory\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/\" \/>\n<meta property=\"og:site_name\" content=\"STS Host and Tech Knowledge base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/stshostandtech\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-11T07:02:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-28T17:28:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/cPanel-directory-privacy-e1640888277358.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1064\" \/>\n\t<meta property=\"og:image:height\" content=\"292\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"HostandTech Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Using cPanel Directory Privacy Password To Protect Files And Directories\" \/>\n<meta name=\"twitter:description\" content=\"Use cPanel directory privacy to protect the directory, where users must enter a username and password to view the contents of the directory\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/cPanel-directory-privacy-e1640888277358.png\" \/>\n<meta name=\"twitter:creator\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:site\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"HostandTech Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/\"},\"author\":{\"name\":\"HostandTech Support\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042\"},\"headline\":\"How To Protect Files And Directories Using cPanel Directory Privacy\",\"datePublished\":\"2021-04-11T07:02:16+00:00\",\"dateModified\":\"2022-02-28T17:28:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/\"},\"wordCount\":275,\"publisher\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/cPanel-directory-privacy.png\",\"keywords\":[\"cPanel\"],\"articleSection\":[\"WHM\/cPanel\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/\",\"url\":\"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/\",\"name\":\"Using cPanel Directory Privacy Password To Protect Files And Directories\",\"isPartOf\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/cPanel-directory-privacy.png\",\"datePublished\":\"2021-04-11T07:02:16+00:00\",\"dateModified\":\"2022-02-28T17:28:34+00:00\",\"description\":\"Use cPanel directory privacy to protect the directory, where users must enter a username and password to view the contents of the directory\",\"breadcrumb\":{\"@id\":\"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/#primaryimage\",\"url\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/cPanel-directory-privacy.png\",\"contentUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/cPanel-directory-privacy.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hostandtech.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Protect Files And Directories Using cPanel Directory Privacy\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hostandtech.com\/help\/#website\",\"url\":\"https:\/\/hostandtech.com\/help\/\",\"name\":\"STS Host and Tech Knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hostandtech.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\",\"name\":\"STS Host and Tech Inc\",\"url\":\"https:\/\/hostandtech.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png\",\"contentUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png\",\"width\":630,\"height\":270,\"caption\":\"STS Host and Tech Inc\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/stshostandtech\",\"https:\/\/x.com\/stshostandtech\",\"https:\/\/www.instagram.com\/stshostandtech\",\"https:\/\/www.youtube.com\/channel\/UCqJOPwWE0ILTeIScaND7enw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042\",\"name\":\"HostandTech Support\",\"url\":\"https:\/\/hostandtech.com\/help\/author\/m-hajobied\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using cPanel Directory Privacy Password To Protect Files And Directories","description":"Use cPanel directory privacy to protect the directory, where users must enter a username and password to view the contents of the directory","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:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/","og_locale":"en_US","og_type":"article","og_title":"Using cPanel Directory Privacy Password To Protect Files And Directories","og_description":"Use cPanel directory privacy to protect the directory, where users must enter a username and password to view the contents of the directory","og_url":"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/","og_site_name":"STS Host and Tech Knowledge base","article_publisher":"https:\/\/www.facebook.com\/stshostandtech","article_published_time":"2021-04-11T07:02:16+00:00","article_modified_time":"2022-02-28T17:28:34+00:00","og_image":[{"width":1064,"height":292,"url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/cPanel-directory-privacy-e1640888277358.png","type":"image\/png"}],"author":"HostandTech Support","twitter_card":"summary_large_image","twitter_title":"Using cPanel Directory Privacy Password To Protect Files And Directories","twitter_description":"Use cPanel directory privacy to protect the directory, where users must enter a username and password to view the contents of the directory","twitter_image":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/cPanel-directory-privacy-e1640888277358.png","twitter_creator":"@stshostandtech","twitter_site":"@stshostandtech","twitter_misc":{"Written by":"HostandTech Support","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/#article","isPartOf":{"@id":"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/"},"author":{"name":"HostandTech Support","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042"},"headline":"How To Protect Files And Directories Using cPanel Directory Privacy","datePublished":"2021-04-11T07:02:16+00:00","dateModified":"2022-02-28T17:28:34+00:00","mainEntityOfPage":{"@id":"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/"},"wordCount":275,"publisher":{"@id":"https:\/\/hostandtech.com\/help\/#organization"},"image":{"@id":"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/#primaryimage"},"thumbnailUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/cPanel-directory-privacy.png","keywords":["cPanel"],"articleSection":["WHM\/cPanel"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/","url":"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/","name":"Using cPanel Directory Privacy Password To Protect Files And Directories","isPartOf":{"@id":"https:\/\/hostandtech.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/#primaryimage"},"image":{"@id":"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/#primaryimage"},"thumbnailUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/cPanel-directory-privacy.png","datePublished":"2021-04-11T07:02:16+00:00","dateModified":"2022-02-28T17:28:34+00:00","description":"Use cPanel directory privacy to protect the directory, where users must enter a username and password to view the contents of the directory","breadcrumb":{"@id":"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/#primaryimage","url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/cPanel-directory-privacy.png","contentUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/04\/cPanel-directory-privacy.png"},{"@type":"BreadcrumbList","@id":"https:\/\/hostandtech.com\/help\/whm-cpanel\/how-to-protect-files-and-directories-using-cpanel-directory-privacy\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostandtech.com\/help\/"},{"@type":"ListItem","position":2,"name":"How To Protect Files And Directories Using cPanel Directory Privacy"}]},{"@type":"WebSite","@id":"https:\/\/hostandtech.com\/help\/#website","url":"https:\/\/hostandtech.com\/help\/","name":"STS Host and Tech Knowledge base","description":"","publisher":{"@id":"https:\/\/hostandtech.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostandtech.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostandtech.com\/help\/#organization","name":"STS Host and Tech Inc","url":"https:\/\/hostandtech.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png","contentUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png","width":630,"height":270,"caption":"STS Host and Tech Inc"},"image":{"@id":"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/stshostandtech","https:\/\/x.com\/stshostandtech","https:\/\/www.instagram.com\/stshostandtech","https:\/\/www.youtube.com\/channel\/UCqJOPwWE0ILTeIScaND7enw"]},{"@type":"Person","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042","name":"HostandTech Support","url":"https:\/\/hostandtech.com\/help\/author\/m-hajobied\/"}]}},"_links":{"self":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/comments?post=370"}],"version-history":[{"count":167,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/370\/revisions"}],"predecessor-version":[{"id":21420,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/370\/revisions\/21420"}],"wp:attachment":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/media?parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/categories?post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/tags?post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}