Knowledge Base
Password protecting a directory
You can ask for a username and password before anyone sees a folder on your site, for example a staging area.
- Log into DirectAdmin and open Password Protected Directories (or Directory Privacy).
- Choose the folder and turn protection on.
- Create a user with a password, and save.
Visitors now see a login prompt before the folder.
This is a basic protection. Use HTTPS so the password is not sent in plain text, see Forcing HTTPS on your website.