How to Password Protect a Directory or URL
How to Setup Password Protection for a Certain Directory or Web Address (URL)
This guide explains how to protect a specific folder on your website with a password.
Using Password Protected Areas
To password protect a folder, follow these steps:
- Access the Password Protected Areas section of your Web Hosting Control Panel (usually under Advanced).
- Select the domain or subdomain you want to protect.
- Specify the folder path you want to protect in the Path field.
- Create a username and password for the protected area.
- Enable the password protection.
Important Considerations
If there's an existing .htaccess file in the folder you're protecting, password protection might not work correctly.
To resolve this:
- Rename the .htaccess file to temporarily disable it.
- Enable password protection.
- Rename the file back to .htaccess.
- Locate a file named .htacl in the same folder.
- Copy the contents of .htacl into the .htaccess file.
Use the File Manager in your Web Hosting Control Panel (usually under Files > File Manager) to perform these file operations.