Blocking or password-protecting a directory in cPanel
Learn how to block or password-protect a directory in cPanel through simple security steps. Easily safeguard your data!
Introduction
- In this tutorial, we will show you the necessary steps to block or password-protect a directory in cPanel
Requirements
- a cPanel account
Steps
1. Access the cPanel and go to the Security section, where you click on Directory Privacy.

After accessing "Directory Privacy", the window below will open:

2. Click on the folder icon to navigate through directories. Click on the name of the directory you want to password protect/block to select it, and the window below will automatically open.

3. Check the box "Protect this directory with a password"
4. Enter a name for the protected directory in the first field and press the Save button.
5. Enter a username and in the last two fields add a secure password that you will use to access that directory/folder, then click the Save button.