Password Protect DirectoriesAA-00301KB: How to Password Protect Directories in cPanel You can password protect a directory on your website to restrict access to its contents. This is useful for securing private information, staging sites, or any content you only want specific people to see. This guide will walk you through the process using cPanel's Password Protect Directories function. Step 1: Access cPanelFirst, log in to your cPanel account. The login URL is typically Step 2: Navigate to Directory PrivacyIn cPanel, find the Files section and click on Directory Privacy. Step 3: Select the Directory to ProtectYou'll see a list of your website's directories. To protect a folder, click on its name. For example, to protect a folder named Step 4: Configure Protection SettingsOn the next page, you'll see a checkbox and a text field.
Step 5: Create a UserAfter saving the protection settings, you need to create a user who can access the directory. Scroll down to the Create User section on the same page.
How It WorksOnce you've completed these steps, any user attempting to access the protected directory will be prompted with a login box. They will need to enter the username and password you created to view the contents. To grant access to more people, you can create additional users for the protected directory by repeating Step 5. To remove access for a user, simply delete their username from the list in the same menu. |