How do I password protect a directory?

    1. Login to cPanel.
    2. Locate and click on the "Directory Privacy" icon under the "Files" category.
Select the location of the directory.
    1. Select the specific folder you want to password protect.
Select the folder to password protect
    1. Enter the required information:
      • Password protect this directory - Choose whether or not the directory is password protected.
      • Name the protected directory - Essentially an alias for the protected directory.
    2. Click the "Save" button to update the directory settings.
    3. Enter authorization information to give a user access to the directory:
      • Username - Create a username for the directory.
      • Password - Select a password for the user to access the directory.
      • Password (Again) - Confirm the user's password.
Enter the required information.
  1. Click the "Add/modify authorized user" button to save the user.

Was this answer helpful?

Also Read

PHP failed to include file: File Not Found

The PHP include() File Not Found error will occur when a .php file attempts to include another...

How to redirect user from none www http to www https ?

Scenario: You want to force all users/client to access your website using https instead of http....

Turn On/Off Directory Browsing

For Linux server: Turn on Directory Browsing -create a .htaccess file in the specific directory...

My website is running slow

If you are using a forum or content management system, make sure that caching is enabled. Caching...

Why is SEO important?

SEO (Search Engine Optimization) enables your website to be more accessible by the search...