View Categories

How to secure a folder with a password in cPanel

1 min read

You can secure a directory with a password using cPanel’s “Password Protected Directories” feature. Here are the steps:

1.) Log in to your cPanel account.

2.) In the “Files” section, locate and click on the “Directory Privacy” icon.

 

 

3.) Click on the folder icon to open the desired directory.

 

 

4.) Select the directory you want to protect with a password and click “Edit”.

5.) In the “Security Settings” section, check the box labeled “Password protect this directory.” Provide a name for the protected directory, such as “Password Protected Area.” Then, click the “Save” button.

 

 

6.) Return to the previous page by clicking the “Go back” button.

7.) You will now be prompted to create a username and password. Scroll down the page to the “Create User” section. Enter the desired username and password, or use the Password Generator option to create a secure password. You can copy the username and password to a notepad for future reference. Be sure to click the “Save” button.

 

 

Now, when you attempt to access your password-protected directory via your web browser using a URL like www.example.com/myfolder, your browser will prompt you to enter a username and password for access.

URGENT: Action Required for Domain and Email Services


If you currently have a domain, website, or email services hosted with us, please transfer them to a new provider as soon as possible.
Please note that all licenses have expired, and the server is scheduled for permanent shutdown imminently. Any data remaining on this server will be irretrievably lost once the server is turned off.
We strongly advise you to act promptly to ensure continuity of your services.
Thank you for your attention to this matter.

This will close in 0 seconds