{"id":3783,"date":"2026-07-22T15:58:32","date_gmt":"2026-07-22T15:58:32","guid":{"rendered":"https:\/\/disoh.com\/support\/how-do-i-password-protect-a-directory-in-directadmin\/"},"modified":"2026-07-22T15:58:32","modified_gmt":"2026-07-22T15:58:32","password":"","slug":"how-do-i-password-protect-a-directory-in-directadmin","status":"publish","type":"docs","link":"https:\/\/disoh.com\/no\/support\/how-do-i-password-protect-a-directory-in-directadmin\/","title":{"rendered":"How do I password-protect a directory in DirectAdmin?"},"content":{"rendered":"<p>Password protection adds a login prompt before anyone can view a folder on your site. It is handy for staging areas, private downloads, or admin sections. Here is how to set it up in DirectAdmin.<\/p>\n<h2>What this does<\/h2>\n<ul>\n<li>Adds a username and password prompt to a specific folder.<\/li>\n<li>Blocks access to everything inside that folder until the visitor logs in.<\/li>\n<li>Works at the server level, separate from any application login.<\/li>\n<\/ul>\n<h2>Step-by-step: protect a directory<\/h2>\n<ol>\n<li>Log in to DirectAdmin (usually <em>yourdomain.com:2222<\/em>).<\/li>\n<li>Go to <strong>Advanced Features<\/strong> and click <strong>Password Protected Directories<\/strong> (sometimes under File Manager).<\/li>\n<li>Select or enter the folder path you want to protect.<\/li>\n<li>Enable protection and set a prompt name (the text shown on the login box).<\/li>\n<li>Create a username and password for access.<\/li>\n<li>Save your settings.<\/li>\n<\/ol>\n<h2>Adding more users<\/h2>\n<ul>\n<li>Return to the same folder settings.<\/li>\n<li>Add extra usernames and passwords as needed.<\/li>\n<li>Remove users when they no longer need access.<\/li>\n<\/ul>\n<h2>Removing protection<\/h2>\n<ol>\n<li>Open the protected directory settings.<\/li>\n<li>Disable protection or delete the users.<\/li>\n<li>Save.<\/li>\n<\/ol>\n<h2>Tips<\/h2>\n<ul>\n<li>Use strong, unique passwords.<\/li>\n<li>Protect the exact folder you mean, not the whole site by mistake.<\/li>\n<li>Combine with SSL so the login is encrypted.<\/li>\n<\/ul>\n<h2>Troubleshooting<\/h2>\n<ul>\n<li><strong>No login prompt appears:<\/strong> confirm protection is enabled on the correct folder.<\/li>\n<li><strong>Login keeps failing:<\/strong> re-enter the password to rule out typos.<\/li>\n<li><strong>Locked out:<\/strong> disable protection from DirectAdmin and set it up again.<\/li>\n<\/ul>\n<h2>Need help?<\/h2>\n<p>If protection is not working as expected, our support team can check it for you over live chat.<\/p>","protected":false},"excerpt":{"rendered":"<p>Password protection adds a login prompt before anyone can view a folder on your site. It is handy for staging areas, private downloads, or admin sections. Here is how to set it up in DirectAdmin. What this does Adds a username and password prompt to a specific folder. Blocks access to everything inside that folder [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[12],"doc_tag":[],"class_list":["post-3783","docs","type-docs","status-publish","hentry","doc_category-webhosting"],"year_month":"2026-07","word_count":245,"total_views":"34","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Jorn","author_nicename":"jorn","author_url":"https:\/\/disoh.com\/no\/author\/jorn\/"},"doc_category_info":[{"term_name":"Webhosting","term_url":"https:\/\/disoh.com\/no\/docs-category\/webhosting\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How do I password-protect a directory in DirectAdmin? &#8211; Disoh<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/disoh.com\/no\/support\/how-do-i-password-protect-a-directory-in-directadmin\/\" \/>\n<meta property=\"og:locale\" content=\"nb_NO\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How do I password-protect a directory in DirectAdmin? &#8211; Disoh\" \/>\n<meta property=\"og:description\" content=\"Password protection adds a login prompt before anyone can view a folder on your site. It is handy for staging areas, private downloads, or admin sections. Here is how to set it up in DirectAdmin. What this does Adds a username and password prompt to a specific folder. Blocks access to everything inside that folder [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/disoh.com\/no\/support\/how-do-i-password-protect-a-directory-in-directadmin\/\" \/>\n<meta property=\"og:site_name\" content=\"Disoh\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/disohhosting\" \/>\n<meta property=\"og:image\" content=\"https:\/\/disoh.com\/wp-content\/uploads\/2025\/07\/disoh_about.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1536\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Ansl. lesetid\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minutt\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/disoh.com\\\/support\\\/how-do-i-password-protect-a-directory-in-directadmin\\\/\",\"url\":\"https:\\\/\\\/disoh.com\\\/support\\\/how-do-i-password-protect-a-directory-in-directadmin\\\/\",\"name\":\"How do I password-protect a directory in DirectAdmin? &#8211; Disoh\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/#website\"},\"datePublished\":\"2026-07-22T15:58:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/support\\\/how-do-i-password-protect-a-directory-in-directadmin\\\/#breadcrumb\"},\"inLanguage\":\"nb-NO\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/disoh.com\\\/support\\\/how-do-i-password-protect-a-directory-in-directadmin\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/disoh.com\\\/support\\\/how-do-i-password-protect-a-directory-in-directadmin\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/disoh.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How do I password-protect a directory in DirectAdmin?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/disoh.com\\\/#website\",\"url\":\"https:\\\/\\\/disoh.com\\\/\",\"name\":\"Disoh\",\"description\":\"Digital Solutions Hosting\",\"publisher\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/disoh.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"nb-NO\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/disoh.com\\\/#organization\",\"name\":\"Disoh LLC\",\"url\":\"https:\\\/\\\/disoh.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nb-NO\",\"@id\":\"https:\\\/\\\/disoh.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/disoh.com\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/favicon_1.svg\",\"contentUrl\":\"https:\\\/\\\/disoh.com\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/favicon_1.svg\",\"width\":615,\"height\":615,\"caption\":\"Disoh LLC\"},\"image\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/disohhosting\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How do I password-protect a directory in DirectAdmin? &#8211; Disoh","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:\/\/disoh.com\/no\/support\/how-do-i-password-protect-a-directory-in-directadmin\/","og_locale":"nb_NO","og_type":"article","og_title":"How do I password-protect a directory in DirectAdmin? &#8211; Disoh","og_description":"Password protection adds a login prompt before anyone can view a folder on your site. It is handy for staging areas, private downloads, or admin sections. Here is how to set it up in DirectAdmin. What this does Adds a username and password prompt to a specific folder. Blocks access to everything inside that folder [&hellip;]","og_url":"https:\/\/disoh.com\/no\/support\/how-do-i-password-protect-a-directory-in-directadmin\/","og_site_name":"Disoh","article_publisher":"https:\/\/www.facebook.com\/disohhosting","og_image":[{"width":1536,"height":1024,"url":"https:\/\/disoh.com\/wp-content\/uploads\/2025\/07\/disoh_about.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Ansl. lesetid":"1 minutt"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/disoh.com\/support\/how-do-i-password-protect-a-directory-in-directadmin\/","url":"https:\/\/disoh.com\/support\/how-do-i-password-protect-a-directory-in-directadmin\/","name":"How do I password-protect a directory in DirectAdmin? &#8211; Disoh","isPartOf":{"@id":"https:\/\/disoh.com\/#website"},"datePublished":"2026-07-22T15:58:32+00:00","breadcrumb":{"@id":"https:\/\/disoh.com\/support\/how-do-i-password-protect-a-directory-in-directadmin\/#breadcrumb"},"inLanguage":"nb-NO","potentialAction":[{"@type":"ReadAction","target":["https:\/\/disoh.com\/support\/how-do-i-password-protect-a-directory-in-directadmin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/disoh.com\/support\/how-do-i-password-protect-a-directory-in-directadmin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/disoh.com\/"},{"@type":"ListItem","position":2,"name":"How do I password-protect a directory in DirectAdmin?"}]},{"@type":"WebSite","@id":"https:\/\/disoh.com\/#website","url":"https:\/\/disoh.com\/","name":"Disoh","description":"Hosting av digitale l\u00f8sninger","publisher":{"@id":"https:\/\/disoh.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/disoh.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"nb-NO"},{"@type":"Organization","@id":"https:\/\/disoh.com\/#organization","name":"Disoh LLC","url":"https:\/\/disoh.com\/","logo":{"@type":"ImageObject","inLanguage":"nb-NO","@id":"https:\/\/disoh.com\/#\/schema\/logo\/image\/","url":"https:\/\/disoh.com\/wp-content\/uploads\/2025\/06\/favicon_1.svg","contentUrl":"https:\/\/disoh.com\/wp-content\/uploads\/2025\/06\/favicon_1.svg","width":615,"height":615,"caption":"Disoh LLC"},"image":{"@id":"https:\/\/disoh.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/disohhosting"]}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/disoh.com\/no\/wp-json\/wp\/v2\/docs\/3783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/disoh.com\/no\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/disoh.com\/no\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/disoh.com\/no\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/disoh.com\/no\/wp-json\/wp\/v2\/comments?post=3783"}],"version-history":[{"count":0,"href":"https:\/\/disoh.com\/no\/wp-json\/wp\/v2\/docs\/3783\/revisions"}],"wp:attachment":[{"href":"https:\/\/disoh.com\/no\/wp-json\/wp\/v2\/media?parent=3783"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/disoh.com\/no\/wp-json\/wp\/v2\/doc_category?post=3783"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/disoh.com\/no\/wp-json\/wp\/v2\/doc_tag?post=3783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}