How to Password Protect a Directory in cPanel

SShaltai-Boltai April 26, 2026 2 min read 0 views
How to Password Protect a Directory in cPanel

You can lock a directory with a password using the cPanel's Directory Privacy.


1. Log in to your cPanel account.


2. In the Files section, click on Directory Privacy.


3. Click on the directory to open it.


4. Click on the Edit, showing next to the directory you want to protect.


5. Under Security Settings, check-mark Password protect this directory. Then click on Save.


6. Now click on Go back.



7. Scroll down the page. Under Create User, fill in the username and password fields or use the Password Generator option to generate a new random password and copy it to Notepad. Click on Save.



If you try to open the password-protected directory in your browser via the URL www.example.com/myfolder, your browser prompts for credentials.

You have password protected a directory in cPanel to add an extra layer of security to your website content.

//RELATED ARTICLESALL ARTICLES →
April 26, 2026 2 min read 0

How to Forcefully or Gracefully Shut Down the VPS in SolusVM 2

You can shut down the VPS in two ways - forcefully or gracefully in SolusVM 2. How to Gracefully shut down the VPS in SolusVM 2? 1. Log in to your SolusVM 2 Control Panel. 2. Under Projects, click on the project that contains your VPS. 3. Click on the appropriate VPS. 4. Click on Stop.5. Click Ye...

SShaltai-Boltai Read more
April 26, 2026 2 min read 0

How to Reboot/Restart VPS in SolusVM 2

You can restart VPS via the command line or SolusVM 2. How to Reboot/Restart a VPS via SolusVM 2? 1. Log in to your SolusVM 2 Control Panel. 2. Under Projects, click on the project that contains your VPS. 3. Click on the appropriate VPS. 4. Click on Restart located at the top right side.5. Choose...

SShaltai-Boltai Read more
April 26, 2026 2 min read 0

How to Check if Your VPS is Online or Offline in SolusVM 2

You can check the status of your SolusVM Virtual Private Server (VPS) to see if it is online or offline. You can find out VPS status from the client area or from the SolusVM 2 Control Panel.1. Log in to your SolusVM 2 Control Panel. 2. Under Projects, click on the project that contains your VPS. ...

SShaltai-Boltai Read more
April 26, 2026 2 min read 0

How to Log in to SolusVM 2 Control Panel

You can find the Control Panel URL, username (email address), and password in your VPS welcome email. SolusVM 2 login details example: Control Panel URL: https://server-hostname/login or use the IP address.Username: Your email address.Password: Your password. How to log in to SolusVM 2 Control Pa...

SShaltai-Boltai Read more