Hostwinds Tutorials
Search results for:
Table of Contents
Tags: cPanel
There may come a time when you have a directory that you want only certain people to access. This can be done in a variety of ways, such as through the .htaccess file. Or other methods depending on your control panel. This guide will be describing how this can be done through your cPanel interface.
The easiest way to locate the option to password protect your files or folders is within cPanel's File Manager.
Step 1. Log into your cPanel.
Step 2. Navigate to the File Manager icon within the cPanel interface. By default, this should be located near the top of the page.
Step 3. Once in the File Manager, navigate to the folder you want to password-protect, then Right Click on the file and choose Password Protect from the options.
Step 4. After clicking that option, you'll be brought to the Directory Privacy page, from which you can proceed with the steps below.
Another way to access the Directory Privacy page would be from the Directory Privacy icon within cPanel. This will be located within the Files section, which by default, should be near the top of your cPanel.
Clicking on that icon will take you to the necessary page to set up folder permissions for a directory. Once there, you can continue with the instructions below on setting up a password-protected folder.
If you had not selected a directory from within the File Manager, you would select one here. You can enter inside of folders by pressing the folder icon on the left of the folder name. Clicking the folder name itself will select it for password protecting.
Once you have selected the folder that you'll be password protected, you'll want to add it as a password-protected directory. And add a user to the directory for access.
After that has been done, whenever anyone attempts to access the folder from their browser, they'll be prompted for a username and password. If correct, it'll allow them access to the files and site content you have there.
If you should have any questions or would like assistance, please contact us through Live Chat or by submitting a ticket with our Technical Support team.
Written by Hostwinds Team / May 3, 2018