{"id":11909,"date":"2023-03-22T10:00:24","date_gmt":"2023-03-22T10:00:24","guid":{"rendered":"https:\/\/www.webhosting.uk.com\/kb\/?p=11909"},"modified":"2026-03-03T11:51:49","modified_gmt":"2026-03-03T11:51:49","slug":"how-to-setup-directory-privacy-in-cpanel","status":"publish","type":"post","link":"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/","title":{"rendered":"How to setup directory privacy in cPanel"},"content":{"rendered":"<p>In this article, we have explained how to setup directory privacy in cPanel for directories. You can password-protect downloads, files, or web pages that you only want certain people to have access to by using Directory Privacy. When you enable this function, anyone attempting to access content in a protected folder will be asked to enter a login and password.<\/p>\n<p><strong>To setup directory privacy in cPanel, follow the steps: <\/strong><\/p>\n<ol>\n<li>Log in to <strong>cPanel<\/strong> panel.<\/li>\n<li>Select the <strong>\u201cDirectory Privacy\u201d<\/strong> option under the <strong>\u201cFiles\u201d<\/strong> category.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11910 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-85.png\" alt=\"files\" width=\"735\" height=\"238\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-85.png 735w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-85-300x97.png 300w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-85-60x19.png 60w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-85-150x49.png 150w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/li>\n<li>Select the directory that you desired to guard and click on the <strong>\u201cEdit\u201d<\/strong> button.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11911 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-86.png\" alt=\"directory privacy\" width=\"996\" height=\"502\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-86.png 996w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-86-300x151.png 300w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-86-768x387.png 768w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-86-60x30.png 60w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-86-150x76.png 150w\" sizes=\"auto, (max-width: 996px) 100vw, 996px\" \/><\/li>\n<li>Tick the box next to the <strong>\u201cPassword protect this directory\u201d<\/strong> option.<\/li>\n<li>Fill in the <strong>name<\/strong>.<\/li>\n<li>Click on the <strong>\u201cSave\u201d<\/strong> button.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11913 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-87.png\" alt=\"password\" width=\"598\" height=\"369\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-87.png 598w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-87-300x185.png 300w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-87-60x37.png 60w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-87-150x93.png 150w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/li>\n<li>You will get a <strong>success message<\/strong>.<\/li>\n<li>Click on the <strong>\u201cGo back\u201d<\/strong> button.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11915 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-89.png\" alt=\"success\" width=\"667\" height=\"170\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-89.png 667w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-89-300x76.png 300w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-89-60x15.png 60w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-89-150x38.png 150w\" sizes=\"auto, (max-width: 667px) 100vw, 667px\" \/><\/li>\n<li>In the <strong>\u201cCreate User\u201d,<\/strong> you can add the users by typing the username and password.<\/li>\n<li>You can generate the password using the generator option.<\/li>\n<li>Then finally click on the <strong>\u201cSave\u201d<\/strong> button.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11916 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-90.png\" alt=\"create user\" width=\"724\" height=\"356\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-90.png 724w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-90-300x148.png 300w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-90-60x30.png 60w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-90-150x74.png 150w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/li>\n<li>You will see the password has been set successfully.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11917 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-91.png\" alt=\"directory privacy\" width=\"680\" height=\"166\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-91.png 680w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-91-300x73.png 300w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-91-60x15.png 60w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-91-150x37.png 150w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/li>\n<li>You will see the <strong>\u201cAuthorised users\u201d<\/strong> as shown in the image given below.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11918 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-92.png\" alt=\"Authorised user\" width=\"567\" height=\"313\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-92.png 567w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-92-300x166.png 300w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-92-60x33.png 60w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-92-150x83.png 150w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><\/li>\n<\/ol>\n<p>In this manner, additional users may be added to a password-protected directory. We hope you liked our article. Nonetheless, if you run into any problems, we are available to assist you. Simply contact the <a title=\"contact us\" href=\"https:\/\/www.webhosting.uk.com\/contact-us\">WHUK\u2019s support staff<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we have explained how to setup directory privacy in cPanel for directories. You can password-protect downloads, files, or web pages that you only want certain people to&hellip;<\/p>\n<p><a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/\" class=\"more-link\">Read More<\/a><\/p>\n<div class='heateorSssClear'><\/div><div  class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' data-heateor-sss-href='https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/'><div class='heateor_sss_sharing_title' style=\"font-weight:bold\" >Spread the love<\/div><div class=\"heateor_sss_sharing_ul\"><a aria-label=\"Facebook\" class=\"heateor_sss_facebook\" href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-setup-directory-privacy-in-cpanel%2F\" title=\"Facebook\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg\" style=\"background-color:#0765FE;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"X\" class=\"heateor_sss_button_x\" href=\"https:\/\/twitter.com\/intent\/tweet?text=Set%20Up%20Directory%20Privacy%20in%20cPanel&url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-setup-directory-privacy-in-cpanel%2F\" title=\"X\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_x\" style=\"background-color:#2a2a2a;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg width=\"100%\" height=\"100%\" style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M21.751 7h3.067l-6.7 7.658L26 25.078h-6.172l-4.833-6.32-5.531 6.32h-3.07l7.167-8.19L6 7h6.328l4.37 5.777L21.75 7Zm-1.076 16.242h1.7L11.404 8.74H9.58l11.094 14.503Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"Linkedin\" class=\"heateor_sss_button_linkedin\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-setup-directory-privacy-in-cpanel%2F\" title=\"Linkedin\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_linkedin\" style=\"background-color:#0077b5;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path d=\"M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z\" fill=\"#fff\"><\/path><\/svg><\/span><\/a><\/div><div class=\"heateorSssClear\"><\/div><\/div><div class='heateorSssClear'><\/div>","protected":false},"author":28,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[880],"tags":[208],"class_list":["post-11909","post","type-post","status-publish","format-standard","hentry","category-cpanel","tag-cpanel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.1 (Yoast SEO v28.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Set Up Directory Privacy in cPanel - WHUK<\/title>\n<meta name=\"description\" content=\"Safeguard your directories! Learn how to set up directory privacy in cPanel to control access and enhance the security of your website content.\" \/>\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.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set Up Directory Privacy in cPanel\" \/>\n<meta property=\"og:description\" content=\"Safeguard your directories! Learn how to set up directory privacy in cPanel to control access and enhance the security of your website content.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Webhosting UK Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhostingukcom\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-22T10:00:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-03T11:51:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-85.png\" \/>\n\t<meta property=\"og:image:width\" content=\"735\" \/>\n\t<meta property=\"og:image:height\" content=\"238\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Victor G\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Set Up Directory Privacy in cPanel\" \/>\n<meta name=\"twitter:description\" content=\"Safeguard your directories! Learn how to set up directory privacy in cPanel to control access and enhance the security of your website content.\" \/>\n<meta name=\"twitter:creator\" content=\"@WebhostingUKcom\" \/>\n<meta name=\"twitter:site\" content=\"@WebhostingUKcom\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-setup-directory-privacy-in-cpanel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-setup-directory-privacy-in-cpanel\\\/\"},\"author\":{\"name\":\"Victor G\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\"},\"headline\":\"How to setup directory privacy in cPanel\",\"datePublished\":\"2023-03-22T10:00:24+00:00\",\"dateModified\":\"2026-03-03T11:51:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-setup-directory-privacy-in-cpanel\\\/\"},\"wordCount\":227,\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-setup-directory-privacy-in-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/Pasted-85.png\",\"keywords\":[\"cPanel\"],\"articleSection\":[\"cPanel &amp; WHM\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-setup-directory-privacy-in-cpanel\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-setup-directory-privacy-in-cpanel\\\/\",\"name\":\"Set Up Directory Privacy in cPanel - WHUK\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-setup-directory-privacy-in-cpanel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-setup-directory-privacy-in-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/Pasted-85.png\",\"datePublished\":\"2023-03-22T10:00:24+00:00\",\"dateModified\":\"2026-03-03T11:51:49+00:00\",\"description\":\"Safeguard your directories! Learn how to set up directory privacy in cPanel to control access and enhance the security of your website content.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-setup-directory-privacy-in-cpanel\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-setup-directory-privacy-in-cpanel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-setup-directory-privacy-in-cpanel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/Pasted-85.png\",\"contentUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/Pasted-85.png\",\"width\":735,\"height\":238,\"caption\":\"How to Setup Directory Privacy in cPanel\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-setup-directory-privacy-in-cpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to setup directory privacy in cPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"name\":\"Webhosting UK Knowledge Base\",\"description\":\"Expert Insights on Hosting, Development, Security, Marketing, and SEO\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"alternateName\":\"WHUK\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\",\"name\":\"Webhosting UK\",\"alternateName\":\"WHUK\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"width\":1200,\"height\":628,\"caption\":\"Webhosting UK\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/webhostingukcom\",\"https:\\\/\\\/x.com\\\/WebhostingUKcom\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/webhostinguk\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/webhosting-uk-com-ltd\\\/\",\"https:\\\/\\\/www.instagram.com\\\/webhosting_uk\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@webhostinguk\"],\"description\":\"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.\",\"email\":\"sales@webhosting.uk.com\",\"telephone\":\"0800 862 0890\",\"legalName\":\"Webhosting UK\",\"foundingDate\":\"2001-02-07\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"51\",\"maxValue\":\"200\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\",\"name\":\"Victor G\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"caption\":\"Victor G\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Set Up Directory Privacy in cPanel - WHUK","description":"Safeguard your directories! Learn how to set up directory privacy in cPanel to control access and enhance the security of your website content.","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.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/","og_locale":"en_GB","og_type":"article","og_title":"Set Up Directory Privacy in cPanel","og_description":"Safeguard your directories! Learn how to set up directory privacy in cPanel to control access and enhance the security of your website content.","og_url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/","og_site_name":"Webhosting UK Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/webhostingukcom","article_published_time":"2023-03-22T10:00:24+00:00","article_modified_time":"2026-03-03T11:51:49+00:00","og_image":[{"width":735,"height":238,"url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-85.png","type":"image\/png"}],"author":"Victor G","twitter_card":"summary_large_image","twitter_title":"Set Up Directory Privacy in cPanel","twitter_description":"Safeguard your directories! Learn how to set up directory privacy in cPanel to control access and enhance the security of your website content.","twitter_creator":"@WebhostingUKcom","twitter_site":"@WebhostingUKcom","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/#article","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/"},"author":{"name":"Victor G","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297"},"headline":"How to setup directory privacy in cPanel","datePublished":"2023-03-22T10:00:24+00:00","dateModified":"2026-03-03T11:51:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/"},"wordCount":227,"publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-85.png","keywords":["cPanel"],"articleSection":["cPanel &amp; WHM"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/","url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/","name":"Set Up Directory Privacy in cPanel - WHUK","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-85.png","datePublished":"2023-03-22T10:00:24+00:00","dateModified":"2026-03-03T11:51:49+00:00","description":"Safeguard your directories! Learn how to set up directory privacy in cPanel to control access and enhance the security of your website content.","breadcrumb":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/#primaryimage","url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-85.png","contentUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/03\/Pasted-85.png","width":735,"height":238,"caption":"How to Setup Directory Privacy in cPanel"},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-setup-directory-privacy-in-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhosting.uk.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to setup directory privacy in cPanel"}]},{"@type":"WebSite","@id":"https:\/\/www.webhosting.uk.com\/kb\/#website","url":"https:\/\/www.webhosting.uk.com\/kb\/","name":"Webhosting UK Knowledge Base","description":"Expert Insights on Hosting, Development, Security, Marketing, and SEO","publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"alternateName":"WHUK","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhosting.uk.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization","name":"Webhosting UK","alternateName":"WHUK","url":"https:\/\/www.webhosting.uk.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","contentUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","width":1200,"height":628,"caption":"Webhosting UK"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhostingukcom","https:\/\/x.com\/WebhostingUKcom","https:\/\/www.youtube.com\/c\/webhostinguk","https:\/\/www.linkedin.com\/company\/webhosting-uk-com-ltd\/","https:\/\/www.instagram.com\/webhosting_uk\/","https:\/\/www.tiktok.com\/@webhostinguk"],"description":"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.","email":"sales@webhosting.uk.com","telephone":"0800 862 0890","legalName":"Webhosting UK","foundingDate":"2001-02-07","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"51","maxValue":"200"}},{"@type":"Person","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297","name":"Victor G","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","caption":"Victor G"}}]}},"_links":{"self":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/11909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/comments?post=11909"}],"version-history":[{"count":8,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/11909\/revisions"}],"predecessor-version":[{"id":19297,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/11909\/revisions\/19297"}],"wp:attachment":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/media?parent=11909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/categories?post=11909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/tags?post=11909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}