Protect sensitive folders on your website by setting up password protection. TZSMM Host guides you through the steps to secure your directories in cPanel efficiently.
Step 1: Log in to cPanel
Access your cPanel account at https://yourdomain.com:2083 and enter your login credentials.
Step 2: Navigate to Directory Privacy
Scroll to the Files section and click on Directory Privacy. This tool allows you to secure folders with a username and password.
Step 3: Select the Directory
Click on the folder you want to protect. Typically, this could be a sensitive folder like admin or private.
Step 4: Enable Password Protection
Check the box labeled Password protect this directory and enter a name for the protected area. This name will appear when users are prompted to log in.
Step 5: Create a User
Create a username and strong password for the directory. This user will have access to the folder. Click Add/Modify User to save the credentials.
Step 6: Verify Protection
Open your browser and navigate to the protected directory URL (e.g., https://yourdomain.com/admin/). You should see a login prompt. Enter the username and password created in Step 5.
Step 7: Manage Users
You can add, modify, or remove users from the same Directory Privacy interface to control access at any time.
Conclusion
Using cPanel’s Directory Privacy tool, you can easily secure sensitive folders with username and password protection. This prevents unauthorized access and ensures your website files remain safe. TZSMM Host provides detailed guidance for managing folder security efficiently.
