Managing directory privacy in cPanel helps you protect sensitive information by requiring a username and password to access specific folders. Follow the below listed steps to manage
directory privacy:
- Log in to cPanel
Open your web browser and navigate to the cPanel login page. Enter your username and password. Click the "Log in" button. - Access Directory Privacy
Navigate to the "Files" section by scrolling in the cPanel dashboard. Click on "Directory Privacy." - Select a directory.
The Directory Privacy tool displays a list of your website's folders (directories). Select the folder that needs to be secured. - Enable Password Protection
After picking a folder, you will see the option "Password protect this directory." To enable password protection, check the box. Enter a name for the protected directory (this is simply a label, so anything goes). Click on "Save." - Create a User for the Directory
Once the directory is protected, you'll need to create a user who can access it. Scroll down to the "Create User" section. Enter a username and a strong password.Re-enter the password for confirmation. Click "Save." - Accessing the Protected Directory
When you or anyone else tries to access the protected directory via a web browser, a login prompt will appear.To gain access, enter the username and password that you have generated. - Managing Users
If you need to add, change, or delete users:- Go back to the "Directory Privacy" tool.
- Select the protected directory.
- Scroll down to the "Authorized Users" section.
- Here, you can add new users, change passwords, or remove users as needed.
- Removing Password Protection
If you no longer need to protect a directory:- Go to the "Directory Privacy" tool.
- Select the directory you want to unprotect.
- Uncheck the option next to "Password-protect this directory."
- Click "Save" to remove the password protection.
You can easily manage the privacy of your folders in the Files section of cPanel by following these instructions. This keeps private data safe and restricted to individuals with permission.