[{"data":1,"prerenderedAt":31},["ShallowReactive",2],{"doc-en-password-protect-folder-plesk":3},{"path":4,"slug":5,"title":6,"description":7,"category":8,"subcategory":9,"icon":10,"date":11,"author":12,"order":13,"image":14,"tags":15,"keywords":21,"docGroup":28,"docGroupIcon":28,"link_fr":29,"bodyHtml":30},"\u002Fdocs\u002Fen\u002Fcloud\u002Fhebergement-web\u002Fpassword-protect-folder-plesk","password-protect-folder-plesk","How to Password Protect a Folder of Your Website on Plesk","Password protect a folder or your whole website on Winheberg Plesk web hosting, protected directory, allowed users, HTTPS and WordPress precautions.","cloud","hebergement-web","tabler:file-text","2026-11-02","Winheberg",151,"\u002Fstatics\u002Fimages\u002Fdocs\u002Fen\u002Fhebergement-web\u002Fpassword-protect-folder-plesk.webp",[16,17,18,19,20],"Security","Password","Plesk","Access","Web Hosting",[22,23,24,25,26,27],"password protect folder","protected directory","htaccess password","site under construction","restricted access","plesk","","\u002Fdocs\u002Fhebergement-web\u002Fdossier-protege-mot-passe-plesk","\u003Ch2>Context\u003C\u002Fh2>\n\u003Cp>A website under construction, a test version, a folder of private documents or an administration area do not need to be visible to everyone. Password protecting a folder asks for a login from anyone who tries to open it, before the page even shows.\u003C\u002Fp>\n\u003Cp>On your \u003Ca href=\"https:\u002F\u002Fwinheberg.com\u002Fen\u002Fcloud\u002Fweb-hosting\">Winheberg web hosting\u003C\u002Fa>, Plesk sets up this protection without touching your website code. The browser shows a login window, and only the users you created can get in.\u003C\u002Fp>\n\u003Cp>This guide covers protecting a folder, creating the allowed users and the precautions to take.\u003C\u002Fp>\n\u003Cdiv class=\"markdown-alert markdown-alert-note\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cline x1=\"12\" y1=\"16\" x2=\"12\" y2=\"12\"\u002F>\u003Cline x1=\"12\" y1=\"8\" x2=\"12.01\" y2=\"8\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>The Winheberg Plesk panel is displayed in French. Menu, field and button names are quoted below exactly as they appear on screen, followed by their English meaning.\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch2>Prerequisites\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>A Winheberg web hosting plan with access to the Plesk panel\u003C\u002Fli>\n\u003Cli>The path of the folder to protect, for instance \u003Ccode>\u002Fprivate\u003C\u002Fcode> for \u003Ccode>example.com\u002Fprivate\u003C\u002Fcode>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cdiv class=\"markdown-alert markdown-alert-important\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Cpath d=\"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z\"\u002F>\u003Cpath d=\"M12 8v4\"\u002F>\u003Cpath d=\"M12 16h.01\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>The browser sends the login and password with every page. Without HTTPS, they travel in clear text. First install the free certificate of your domain with our guide \u003Ca href=\"https:\u002F\u002Fwinheberg.com\u002Fen\u002Fdocs\u002Fhebergement-web\u002Flets-encrypt-ssl-certificate-plesk\">How to Generate a Let&#39;s Encrypt SSL Certificate for Your Website\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch2>1. Open the protected directories\u003C\u002Fh2>\n\u003Cp>Open your domain from \u003Cstrong>Sites Web &amp; Domaines\u003C\u002Fstrong> (\u003Cem>Websites &amp; Domains\u003C\u002Fem>). In the \u003Cstrong>Tableau de bord\u003C\u002Fstrong> (\u003Cem>Dashboard\u003C\u002Fem>), \u003Cstrong>Sécurité\u003C\u002Fstrong> (\u003Cem>Security\u003C\u002Fem>) section, click \u003Cstrong>Répertoires protégés par un mot de passe\u003C\u002Fstrong> (\u003Cem>Password-Protected Directories\u003C\u002Fem>).\u003C\u002Fp>\n\u003Cimg src=\"\u002Fstatics\u002Fimages\u002Fdocs\u002Fen\u002Fhebergement-web\u002Fpassword-protect-folder-plesk-1793616261325-5590309a0fe75c7b554cde48.webp\" alt=\"List of password-protected directories in Plesk\" width=\"800\" \u002F>\n\n\u003Cp>The list already contains \u003Ccode>\u002Fplesk-stat\u003C\u002Fcode>, the folder of your website statistics, protected by default. Leave it as it is.\u003C\u002Fp>\n\u003Ch2>2. Protect a folder\u003C\u002Fh2>\n\u003Cp>Click \u003Cstrong>Ajouter un répertoire protégé\u003C\u002Fstrong> (\u003Cem>Add Protected Directory\u003C\u002Fem>).\u003C\u002Fp>\n\u003Cimg src=\"\u002Fstatics\u002Fimages\u002Fdocs\u002Fen\u002Fhebergement-web\u002Fpassword-protect-folder-plesk-1793616261618-80aef24090b52c9a282ec3fc.webp\" alt=\"Create a protected directory window in Plesk\" width=\"630\" \u002F>\n\n\u003Cdiv class=\"md-table md-table--info md-table--striped\">\u003Cdiv class=\"md-table__caption\">Window fields\u003C\u002Fdiv>\u003Cdiv class=\"md-table__scroll\">\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Field\u003C\u002Fth>\n\u003Cth>What to enter\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>Nom du répertoire (\u003Cem>Directory name\u003C\u002Fem>)\u003C\u002Ftd>\n\u003Ctd>The folder path from the website root, for instance \u003Ccode>\u002Fprivate\u003C\u002Fcode>, or \u003Ccode>\u002F\u003C\u002Fcode> to protect the whole website\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Titre de la zone protégée (\u003Cem>Protected area title\u003C\u002Fem>)\u003C\u002Ftd>\n\u003Ctd>A label to find your way, which some browsers show in the login window\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cp>Click \u003Cstrong>Créer\u003C\u002Fstrong> (\u003Cem>Create\u003C\u002Fem>). The folder shows in the list, but nobody can get in yet.\u003C\u002Fp>\n\u003Ch2>3. Add the allowed users\u003C\u002Fh2>\n\u003Cp>In the list, click the name of the protected folder, then \u003Cstrong>Ajouter un utilisateur\u003C\u002Fstrong> (\u003Cem>Add User\u003C\u002Fem>).\u003C\u002Fp>\n\u003Cimg src=\"\u002Fstatics\u002Fimages\u002Fdocs\u002Fen\u002Fhebergement-web\u002Fpassword-protect-folder-plesk-1793616261903-29c9637d6200c92d9adb92bc.webp\" alt=\"Create a user for the protected directory window in Plesk\" width=\"630\" \u002F>\n\n\u003Cp>Enter a \u003Cstrong>Nom d&#39;utilisateur\u003C\u002Fstrong> (\u003Cem>User name\u003C\u002Fem>), click \u003Cstrong>Générer\u003C\u002Fstrong> (\u003Cem>Generate\u003C\u002Fem>) to get a strong password and write it down, then click \u003Cstrong>Créer\u003C\u002Fstrong>. Repeat for each person, each with their own login.\u003C\u002Fp>\n\u003Ch2>4. Test the protection\u003C\u002Fh2>\n\u003Cp>Open the folder address in a private browsing window, for instance \u003Ccode>https:\u002F\u002Fexample.com\u002Fprivate\u003C\u002Fcode>. The browser should ask for a login and password before showing anything.\u003C\u002Fp>\n\u003Cp>To remove the protection, tick the folder in the list, then click \u003Cstrong>Supprimer la protection\u003C\u002Fstrong> (\u003Cem>Remove Protection\u003C\u002Fem>). The folder and its content stay in place.\u003C\u002Fp>\n\u003Ch2>Troubleshooting\u003C\u002Fh2>\n\u003Ch3>❌ The login window keeps coming back\u003C\u002Fh3>\n\u003Cp>The server rejects the credentials entered.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Check the user name, it is case sensitive\u003C\u002Fli>\n\u003Cli>Set a new password for this user from the folder user list\u003C\u002Fli>\n\u003Cli>Close all browser windows, it sometimes keeps an old password in memory\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>❌ Part of the WordPress website stops working\u003C\u002Fh3>\n\u003Cp>The \u003Ccode>\u002Fwp-admin\u003C\u002Fcode> folder is protected, while some functions of the public website go through it.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Protect the whole website instead while it is under construction, with \u003Ccode>\u002F\u003C\u002Fcode> as directory name\u003C\u002Fli>\n\u003Cli>To secure the administration of a live website, prefer strong passwords and the WP Toolkit security measures\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Best practices\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>Protect the whole website while it is under construction, then remove the protection when it goes live\u003C\u002Fli>\n\u003Cli>Create one user per person, so you can remove an access without changing the others\u003C\u002Fli>\n\u003Cli>Delete the users who no longer need access\u003C\u002Fli>\n\u003Cli>Do not rely on this protection for highly sensitive data, keep it outside your public webspace instead\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Need help?\u003C\u002Fh2>\n\u003Cp>If the protection does not apply or blocks part of your website, open a ticket with our support from your \u003Ca href=\"https:\u002F\u002Fbilling.winheberg.com\">client area\u003C\u002Fa>, \u003Cstrong>Technical\u003C\u002Fstrong> department, filling in the \u003Cstrong>Related Product\u003C\u002Fstrong> field with the web hosting concerned. Mention the path of the protected folder.\u003C\u002Fp>\n\u003Cp>Your private pages stay private, without a line of code 🔒\u003C\u002Fp>\n",1794526351139]