Skip to main content

Password Protected Directories & How To Use It

Introduction​

Password Protected Directories let you secure specific areas of your website, such as the public_html folder, by requiring a password for access. This feature is useful for keeping parts of your site private until they are ready to be publicly accessible.

Key Information​

note

Not all paths can be secured with a password. If a folder is disabled for selection in the Web Control Panel, it cannot be password protected. This limitation is determined by the system for security purposes.

How to Protect a Directory​

To password protect a directory like public_html:

  1. Go to the Web Control Panel.
  2. Navigate to Security Management > Password Protected Directories.
  3. Click Add Protected Directory.
  4. Select the path you want to protect, e.g., public_html.
  5. Enter a Protected Directory Prompt; this is the message that will show when someone tries to access the protected area.
  6. In the Set/Update User field, type a username.
  7. Set a strong password.
  8. Click Protect.
GIF

After setting up password protection, try accessing the path from your browser to ensure it is properly secured.

warning

Securing the entire public_html folder will restrict access to your entire website located within that folder.

Conclusion​

Using Password Protected Directories is an effective way to control access to different parts of your website. Remember to regularly update your passwords to maintain your site’s security.