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
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
:
- Go to the Web Control Panel.
- Navigate to Security Management > Password Protected Directories.
- Click Add Protected Directory.
- Select the path you want to protect, e.g.,
public_html
. - Enter a Protected Directory Prompt; this is the message that will show when someone tries to access the protected area.
- In the Set/Update User field, type a username.
- Set a strong password.
- Click Protect.
After setting up password protection, try accessing the path from your browser to ensure it is properly secured.
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.