Skip to content

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.


  1. Log into DirectAdmin and open Password Protected Directories (or Directory Privacy).
  2. Choose the folder and turn protection on.
  3. 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.

Please rate this article to help us improve our Knowledge Base.

0 0