In this article, you will learn how to use Directory Privacy option in CPanel
Set a password to protect certain directories of your account. When you enable this feature, a user that tries to open a protected folder will be prompted to enter a username and password before they can access your content.
For more information, read the official documentation here: https://go.cpanel.net/DirectoryPrivacy
Directory privacy can be used to protect the directories from public access by authorizing certain users only. This is a two-step process.
Step 1: Selecting the directory to be protected. Then apply the privacy option for it.
Step 2: Add user and create a password for him/her. This user is allowed to access this private directory using the login credentials.
Watch this video to understand how it works, we have demonstrated in this video with some sample users and data.