Securing sensitive directories on your website is crucial to prevent unauthorized access and protect your data. cPanel offers a Directory Privacy feature that allows you to password-protect specific directories within your website. This knowledgebase article will guide you through the steps to set up and manage directory privacy in cPanel.
1. Accessing the Directory Privacy feature
To access the Directory Privacy feature, you first need to access cPanel. You can conveniently do this by logging in through your Inwebify Client Portal. Alternatively, if you prefer to log in directly, here are the steps to follow:
-
Log in to cPanel:
- Open your web browser and navigate to your cPanel login page, typically found at
http://yourdomain.com/cpanel
orhttp://yourdomain.com:2083
. - Enter your cPanel username and password.
- Click the "Log in" button.
- Open your web browser and navigate to your cPanel login page, typically found at
-
Navigate to Directory Privacy:
- Once logged in, scroll down to the "Files" section.
- Click on the "Directory Privacy" icon.
2. Setting up Directory Privacy
Follow these steps to set up directory privacy:
-
Select the directory:
- After clicking on "Directory Privacy," you will see a list of directories and subdirectories within your hosting account.
- Navigate to the directory you want to protect. Click on the directory name to select it.
-
Enable directory privacy:
- Check the box labeled "Password protect this directory."
- Enter a name for the protected directory in the "Name the protected directory" field. This name will be displayed in the authentication prompt.
-
Create a user:
- Scroll down to the "Create User" section.
- Enter a username and password for the new user. This user will need these credentials to access the protected directory.
- Confirm the password by entering it again in the "Confirm Password" field.
- Click the "Save" button to create the user.
-
Confirm settings:
- You will see a confirmation message indicating that the directory is now protected and the user has been created.
3. Managing Directory Privacy settings
You can manage and modify the privacy settings for your protected directories as follows:
-
Edit directory protection:
- Navigate back to the "Directory Privacy" section in cPanel.
- Select the protected directory you want to manage.
- You can change the name of the protected directory or disable password protection by unchecking the "Password protect this directory" box and clicking "Save."
-
Manage users:
- In the same section, scroll down to the "Authorized Users" area.
- You can add new users, change existing user passwords, or delete users to control who has access to the protected directory.
4. Removing Directory Privacy
If you no longer need to protect a directory, you can remove the privacy settings:
-
Navigate to Directory Privacy:
- Go to the "Directory Privacy" section in cPanel.
- Select the directory from which you want to remove protection.
-
Disable password protection:
- Uncheck the box labeled "Password protect this directory."
- Click the "Save" button to remove the password protection.
-
Delete users:
- Scroll down to the "Authorized Users" section.
- Delete any users associated with the protected directory if they are no longer needed.
The Directory Privacy feature in cPanel is an effective way to secure specific directories on your website by requiring a username and password for access. By following the steps outlined in this guide, you can easily set up, manage, and remove directory privacy to protect sensitive information and ensure that only authorized users can access certain parts of your website.
If you encounter any issues or need further assistance, contact our support team for additional help.