Help centre article
Knowledge base · Web hosting
You can protect any folder of your website with a username and password. Visitors see a login box before they can open anything inside it. This is handy for a staff area, a client preview or files you do not want public.
In this article
- Protect a folder
- Add people who can open it
- Need help?
About the screenshots
The screenshots in this guide use example values such as yourdomain.ca. Your own domain, settings and plan limits will be different.
Protect a folder
Sign in to Plesk at https://plesk.webcrafters.ca:8443 or https://yourdomain.ca:8443. Your login details are in your hosting welcome email and in the client portal at my.webcrafters.ca.
| 1 | On the Websites & Domains page, click Password-Protected Directories under Security. |
Password-Protected Directories on the Websites & Domains page. Click the image to view it full size.
| 2 | Click Add Protected Directory. You may already see /plesk-stat in the list. That folder protects your website statistics, so leave it as it is. |
The Protected Directories page. Click the image to view it full size.
| 3 | In Directory name, enter the folder to protect, for example /private for yourdomain.ca/private. Add a Title of the protected area, which visitors see on the login box. |
| 4 | Click Create. |
The Create Protected Directory form. Click the image to view it full size.
Add people who can open it
| 1 | Click the folder name in the list to open its users. |
| 2 | Click Add User, enter a username and password, and save. Share these details only with the people who need access. |
| 3 | To change a password later, click the key icon next to the user. |
Users of a protected directory. Click the image to view it full size.
Good to know
This protection works at the server level, before your website loads. It is not the same as WordPress user accounts, and protecting your whole website this way will also hide it from search engines.
Need help?
Open a ticket at my.webcrafters.ca or email [email protected]. You can also call 604-918-7977, Monday to Friday 9:00 to 17:30 PT. Please do not include passwords in your ticket or email.



