---
title: "How to password protect a directory in cPanel"
type: "knowledge"
post_id: "2332"
slug: "how-to-password-protect-a-directory-in-cpanel"
canonical: "https://kb.easydns.com/knowledge/how-to-password-protect-a-directory-in-cpanel/"
markdown_url: "https://kb.easydns.com/knowledge/how-to-password-protect-a-directory-in-cpanel.md"
json_url: "https://kb.easydns.com/knowledge/how-to-password-protect-a-directory-in-cpanel.json"
txt_url: "https://kb.easydns.com/knowledge/how-to-password-protect-a-directory-in-cpanel.txt"
published: "2018-07-12T16:21:35+00:00"
modified: "2020-06-09T11:57:44+00:00"
author: "ryan"
categories:
tags:
site_name: "easyDNS Knowledge Base"
publisher: "easyDNS Technologies Inc."
language: "en-US"
generator: "easyPress Markdown"
generator_version: "1.0.6"
---
How to password protect a directory in cPanel

 This demo assumes you’ve already logged in to cPanel, and are starting on the home screen.

 Click the **Directory Privacy** icon.

 Now let’s learn how to password protect a directory.

 Select the directory you want to password protect by clicking its name.

 Check the **Password Protect** box, then give a name for the directory, and click **Save**.

 The directory is now protected, and requires a password to enter it via a browser.

 We must therefore create at least one user, and assign them a password so they can access the directory.

 Assign a username and password in the **Create User** section.

 The protected directory now has one user who has access to it. Repeat this process for each additional user you want to grant access for.

 This is the end of the tutorial. You now know how to password protect directories, and assign users to them.

 You can see the new user we just added in the **Authorized Users** section.
