How to Password Protect a Directory in cPanel

This guide will show you how to protect a folder with a password in cPanel. This means only users with a username and password can access it.

Step 1: Open Password Protect Directories

  1. Log in to cPanel. (Need help? Check "How to Login to cPanel.")

  2. Scroll down to the Security section.

  3. Click Password Protect Directories.

  4. Find and click on the folder you want to protect.

Step 2: Enable Password Protection

  1. Make sure the correct directory is listed at the top.

  2. Under Security Settings, check the box to enable password protection.

  3. Enter a name for the protected directory (e.g., "Members Area" or "Private Files").

  4. Click Save to confirm.

Step 3: Create a User for Access

  1. Click Go Back to return to the previous screen.

  2. Under Create User, enter a Username and Password.

  3. Click Add/Modify Authorized User to save.

  4. Repeat this for any additional users you want to add.

Step 4: Manage Users & Exit

  • You can return anytime to add, remove, or update users.

  • A lock icon will appear next to the protected folder.

  • To exit, click Home (top left) or Logout (top right).

  • If using a public computer, always log out for security.

Now you know how to password protect a folder in cPanel! 

آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

How to Block an IP Address Using IP Deny Manager in cPanel

How to Block an IP Address Using IP Deny Manager in cPanel This guide will show you how to block...

How to Enable Hotlink Protection in cPanel

Hotlink Protection prevents other websites from using your images or files directly, saving your...