{"id":579,"date":"2024-10-19T12:28:04","date_gmt":"2024-10-19T12:28:04","guid":{"rendered":"https:\/\/drupalwebhosting.in\/tutorials\/?p=579"},"modified":"2024-10-19T12:29:42","modified_gmt":"2024-10-19T12:29:42","slug":"password-protected-directories","status":"publish","type":"post","link":"https:\/\/drupalwebhosting.in\/tutorials\/password-protected-directories\/","title":{"rendered":"Password Protected Directories"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.plesk.com\/\" data-type=\"link\" data-id=\"https:\/\/www.plesk.com\/\" target=\"_blank\" rel=\"noopener\">Password protected directories in Plesk<\/a> provides an extra layer of security for sensitive areas of <a href=\"https:\/\/www.drupalwebhosting.in\/drupal-web-hosting-india\/\" data-type=\"link\" data-id=\"https:\/\/www.drupalwebhosting.in\/drupal-web-hosting-india\/\">your WordPress website<\/a>. <\/p>\n\n\n\n<p>This can be useful for protecting admin pages, staging environments, development sites, or private content that you want to restrict from public access.<\/p>\n\n\n\n<p>This guide will walk you through how to configure password protected directories in <a href=\"https:\/\/www.drupalwebhosting.in\/drupal-reseller-web-hosting-india\/\" data-type=\"link\" data-id=\"https:\/\/www.drupalwebhosting.in\/drupal-reseller-web-hosting-india\/\">Plesk for WordPress hosted website<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#why-use-password-protected-directories\">Why Use Password Protected Directories?<\/a><\/li><li><a href=\"#step-by-step-guide-to-password-protect-directories-in-plesk\">Step-by-Step Guide to Password Protect Directories in Plesk<\/a><ul><li><a href=\"#1-log-in-to-plesk\">1. Log in to Plesk<\/a><\/li><li><a href=\"#2-navigate-to-the-website-domains-section\">2. Navigate to the Website &amp; Domains Section<\/a><\/li><li><a href=\"#3-open-the-password-protected-directories-option\">3. Open the Password Protected Directories Option<\/a><\/li><li><a href=\"#4-add-a-new-password-protected-directories\">4. Add a New Password Protected Directories<\/a><\/li><li><a href=\"#5-set-a-name-for-the-protected-area\">5. Set a Name for the Protected Area<\/a><\/li><li><a href=\"#6-create-user-credentials\">6. Create User Credentials<\/a><\/li><li><a href=\"#7-save-and-apply-changes\">7. Save and Apply Changes<\/a><\/li><\/ul><\/li><li><a href=\"#accessing-the-password-protected-directories\">Accessing the Password Protected Directories<\/a><\/li><li><a href=\"#managing-password-protected-directories\">Managing Password-Protected Directories<\/a><\/li><li><a href=\"#common-use-cases-for-password-protected-directories-in-word-press-hosting\">Common Use Cases for Password Protected Directories in WordPress Hosting<\/a><\/li><li><a href=\"#best-practices-for-using-password-protected-directories\">Best Practices for Using Password-Protected Directories<\/a><\/li><li><a href=\"#conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"why-use-password-protected-directories\">Why Use Password Protected Directories?<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Extra Layer of Security<\/strong>: Restrict access to sensitive parts of your website.<\/li>\n\n\n\n<li><strong>Protect Staging or Development Environments<\/strong>: Ensure that only authorized users can view and test your site before it goes live.<\/li>\n\n\n\n<li><strong>Safeguard Sensitive Content<\/strong>: Limit access to private files, documents, or areas that contain sensitive information.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-by-step-guide-to-password-protect-directories-in-plesk\">Step-by-Step Guide to Password Protect Directories in Plesk<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"1-log-in-to-plesk\">1. <strong>Log in to Plesk<\/strong><\/h4>\n\n\n\n<p>Access your Plesk control panel by logging in with your admin credentials.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"2-navigate-to-the-website-domains-section\">2. <strong>Navigate to the Website &amp; Domains Section<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to the <strong>\u2018Websites &amp; Domains\u2019<\/strong> tab.<\/li>\n\n\n\n<li>Select the domain or <a href=\"https:\/\/wordpress.org\/download\/\" data-type=\"link\" data-id=\"https:\/\/wordpress.org\/download\/\" target=\"_blank\" rel=\"noopener\">WordPress installation<\/a> for which you want to password protect directories.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"3-open-the-password-protected-directories-option\">3. <strong>Open the Password Protected Directories Option<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Scroll down to the <strong>\u2018Security\u2019<\/strong> section.<\/li>\n\n\n\n<li>Click on <strong>\u2018Password Protected Directories\u2019<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"4-add-a-new-password-protected-directories\">4. <strong>Add a New Password Protected Directories<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on <strong>\u2018Add Protected Directory\u2019<\/strong>.<\/li>\n\n\n\n<li>In the <strong>\u2018Directory Name\u2019<\/strong> field, enter the path to the folder you want to protect. This could be:\n<ul class=\"wp-block-list\">\n<li>A custom directory (e.g., <code>\/staging<\/code>, <code>\/private-content<\/code>)<\/li>\n\n\n\n<li>Sensitive sections like <code>\/wp-admin<\/code> (though WordPress already has login protection for this).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>In the <strong>\u2018Directory Location\u2019<\/strong>, ensure it points to your WordPress site directory, typically in <code>\/httpdocs<\/code> or <code>\/public_html<\/code>.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"5-set-a-name-for-the-protected-area\">5. <strong>Set a Name for the Protected Area<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the <strong>\u2018Protected Directory Name\u2019<\/strong> field, you can provide a name for the directory, such as &#8220;Staging Area&#8221; or &#8220;Private Section.&#8221; This is the name that will appear on the authentication prompt when someone tries to access the protected directory.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"6-create-user-credentials\">6. <strong>Create User Credentials<\/strong><\/h4>\n\n\n\n<p>Now that the directory is set, you need to create a username and password that will be required to access this protected area.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on <strong>\u2018Add a User\u2019<\/strong>.<\/li>\n\n\n\n<li>In the <strong>\u2018Username\u2019<\/strong> and <strong>\u2018Password\u2019<\/strong> fields, enter the credentials that authorized users will use to access the directory.<\/li>\n<\/ul>\n\n\n\n<p>Make sure to use strong, secure passwords to prevent unauthorized access.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"7-save-and-apply-changes\">7. <strong>Save and Apply Changes<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click <strong>\u2018OK\u2019<\/strong> to save your settings.<\/li>\n\n\n\n<li>The selected directory will now be password-protected, and users will need to enter valid credentials to access it.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"accessing-the-password-protected-directories\">Accessing the Password Protected Directories<\/h3>\n\n\n\n<p>When someone attempts to visit the protected directory (e.g., <code>example.com\/staging<\/code>), they will be prompted with a dialog box asking for a username and password. Only users with the correct credentials will be able to access the content within that directory.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"managing-password-protected-directories\">Managing Password-Protected Directories<\/h3>\n\n\n\n<p>You can manage, edit, or remove protection from a directory at any time through the <strong>Password-Protected Directories<\/strong> interface in Plesk.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Add\/Remove Users<\/strong>: You can add more users or remove existing users who have access to the protected directory.<\/li>\n\n\n\n<li><strong>Change Password<\/strong>: Update passwords if needed to maintain security.<\/li>\n\n\n\n<li><strong>Remove Protection<\/strong>: If the directory no longer needs to be protected, simply remove the password protection from the directory.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"common-use-cases-for-password-protected-directories-in-word-press-hosting\">Common Use Cases for Password Protected Directories in WordPress Hosting<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Staging Environments<\/strong>: Protect a staging or development version of your WordPress site so only developers or clients can access it.<\/li>\n\n\n\n<li><strong>Admin Areas<\/strong>: Add an extra layer of security to sensitive parts of your site (e.g., <code>\/wp-admin<\/code>) beyond WordPress&#8217; built-in login screen.<\/li>\n\n\n\n<li><strong>Private Content or Files<\/strong>: Protect downloadable resources, documentation, or confidential content that should only be accessed by specific users.<\/li>\n\n\n\n<li><strong>Client Preview Areas<\/strong>: When developing sites for clients, use password protection to restrict access until the site is ready to go live.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"best-practices-for-using-password-protected-directories\">Best Practices for Using Password-Protected Directories<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Strong Passwords<\/strong>: Always use complex, strong passwords to prevent unauthorized access.<\/li>\n\n\n\n<li><strong>Limit User Access<\/strong>: Only give credentials to users who truly need access to the protected area.<\/li>\n\n\n\n<li><strong>Combine with HTTPS<\/strong>: Ensure that your site is using HTTPS, so the login credentials entered for password protection are encrypted in transit.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h3>\n\n\n\n<p>Setting up password-protected directories in Plesk for your WordPress site is a simple yet effective way to secure sensitive areas or environments. By following these steps, you can ensure that only authorized users can access certain parts of your site, adding another layer of protection to your hosting environment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Password protected directories in Plesk provides an extra layer of security for sensitive areas of your WordPress website. This can be useful for protecting admin pages, staging environments, development sites, or private content that you want to restrict from public access. This guide will walk you through how to configure password protected directories in Plesk [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":590,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35,48],"tags":[],"class_list":["post-579","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","category-plesk"],"_links":{"self":[{"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/posts\/579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/comments?post=579"}],"version-history":[{"count":12,"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/posts\/579\/revisions"}],"predecessor-version":[{"id":592,"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/posts\/579\/revisions\/592"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/media\/590"}],"wp:attachment":[{"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/media?parent=579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/categories?post=579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/tags?post=579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}