How To Password Protect a Directory in cPanel

  1. This tutorial assumes you’ve already logged in to cPanel, and are starting on the home screen.
  2. Now let’s learn how to password protect a directory.

    cpanel-paperlantern-18-protect--01

  3. Click the "Directory Privacy" icon.

    cpanel-paperlantern-18-protect--02

  4. Select the directory to start with, then click "Go".

    cpanel-paperlantern-18-protect--03

  5. Select the directory you want to password protect by clicking its name.

    cpanel-paperlantern-18-protect--04

  6. Check the "Password Protect" box, then give a name for the directory, and click "Save".

    cpanel-paperlantern-18-protect--05

  7. The directory is now protected, and requires a password to enter it via a browser.

    cpanel-paperlantern-18-protect--06

  8. We must therefore create at least one user, and assign them a password so they can access the directory.

    cpanel-paperlantern-18-protect--07

  9. Assign a username and password in the "Create User" section.

    cpanel-paperlantern-18-protect--08

  10. The protected directory now has one user who has access to it. Repeat this process for each additional user you want to grant access for.

    cpanel-paperlantern-18-protect--09

  11. You can see the new user we just added in the "Authorized Users" section.

    cpanel-paperlantern-18-protect--10