How to employ a password to keep the cPanel folder secure?


cPanel hosting incorporates Cpanel installation which is basically Linux web hosting. cPanel has its set of advantages and disadvantages, but it is highly compatible with most of the users and it is one of the best options in the market if you’re searching for the best control panel. If you opt for this option, here’s what you can expect.

It is highly straightforward to get used to and to employ in real life. It is a real time saver and highly cost-effective. It is built through testing by experts and has software auto-installers as part of the package. You have a huge amount of support available online including tutorials.

It has a vast variety of features that can be hard to choose from, which also opens up to making mistakes like accidentally changing different types of settings. It is possible, although rare for some hosts to run software that is past its prime at a cost that is more than average. You also have to pay for hosting as it is not part of the package.

Once you have your CPanel account set up, then comes the worries about security. One of the best ways to secure a folder in your CPanel account is by employing a password. It can help keep your highly sensitive files absolutely safe from being casually accessed by the public. You can easily put a password for your folder to protect it using a simple option in cPanel. 

How do you secure your folder using passwords?

It is vital that you understand the process of how your folder is protected by your password. When you decide to protect your folder in cPanel using a password, a rule is made by cPanel in your .htaccess file. The rule ensures that the folder is kept safe and that every user will have to give a valid username and password to be able to gain access and see the files held inside it.

How to add password protection to your cPanel folder?

The process of putting a password on your folder includes adding a name to the folder that will be shown in the visitor’s browser when they want to gain access and are asked to provide a password and username. You can follow up by making passwords and users to note exactly which users can gain access to your folder. When you apply a password to a specific folder, all the folders within it receive that protection as well.

  1. In order to add a password to your folder, follow these steps:
  2. Use your cPanel login to get in.
  3. Select directory privacy in your cPanel’s FILES section
  4. Select the name of the directory you want to apply the password to
  5. You can select the folder icon that is placed beside the folder name to access that given folder.
  6. Select Edit.
  7. Within Security Settings, you can click on the check box to help select the directory you want to protect with your password.
  8. Select a name and type it in the Enter a Name for the protected directory text box.
  9. Select the Save option.
  10. Within Create user, you can put a username in the text box that makes Username.
  11. Put in the user passwords in the text box named New Password.
  12. Retype your selected password in the text box called Confirm Password.
  13. You can also Select Password Generator and a strong password at random will be chosen for you by cPanel.
  14. Select Save. Voilà, you have successfully added a password to your directory.

Why should you choose strong usernames?

It is quite simple to remember to employ usernames that are extremely difficult to guess when you are first creating your account or folder. However, how do you know which is a strong username from a vulnerable one? You might want to completely avoid selecting your name, whether first or last, as well as generic terms like admin. No matter what, ensure that you use a random combination of upper and lower case letters where people would least expect them. Put in symbols and numbers to your username. It basically makes it harder for the hacker to easily guess even if they have access to all of your public information. 


When you are talking about passwords, you might want to opt for passwords that are incredibly strong, hard to guess and extremely unique for all of your folders and accounts, including your MySQL root user and any of the system accounts, in addition to various directories which could have a lot of sensitive information. These same directions to keeping your folder safe dictate that a unique username should be used for making a password, however, a random password of uppercase and lower case letters, numbers and symbols is the best way to go. You might also want to opt for a password manager so that you do not forget the sheer number of passwords you have to remember.

eTechSupport is a Managed Services Provider specialising in services like Web Hosting Support, Server Administration, Management & Monitoring, Live Support (Ticket Support - Chat Support), Database Administration, Remote Backup Configuration & Management and Migration as a Service.

Get your free trial now