How To Password Protect A Directory

How To Password Protect A Directory

This article will provide instructions on how to password protect any directory on your server using the cPanel interface. Please note the following from cPanel about password protected directories:

Password protection allows you to require a username and password to access a folder within your site from the web. When password protecting a folder, there are a few things to remember.

Protecting a folder will protect all folders within that folder. Also, you will need to create users who can access the protected directory. You can give the password protected directory any name, no matter what the actual directory is called.

The following steps will guide you in this process:

**All pictures are for reference only. The actual layout of your interface may differ from the images below**

**You will need to change all references of yourdomain.co.uk to your main cPanel domain.**

Step 1: Log into your cPanel interface.

You can log in to your cPanel interface atyourdomain.co.uk/cpanel

**If you experience any difficulties accessing your cPanel, please contact our technical support team. They would be happy to help you obtain your login details or any other login issues.**

Step 2: Click on Password Protect Directories in the Security field.

password protect directories

Step 3: You will then be prompted to select a directory to open.

If you see the folder that you wish to protect listed then you will want to select the option button next to the folder you wish to protect. ** Please note that if you want to password protect a directory for an addon domain or a subdomain, you will need to choose the domain from the drop-down list.** Once you have made your decision, please click the Go button.

select directory

Step 4: On the next screen, please click on the directory you wish to password protect.

**If you cannot find it there, please go back to the home screen of cPanel and click on Password Protect Directories again and choose the proper directory.**

Step 5: You will first need to name the protected directory.

Please check the Password protect this directory box and then give it a name. Once you have given it a name, please click Save.

**As this will not rename the directory it can be named anything, it needs to be named to enable password protection on the directory.**

save

On the next screen it will confirm that the directory you selected is now password protected. From here, please click Go back to return to add users to this directory.

Step 6: To create a user you will fill in the provided fields (highlighted in yellow) this will create a username and password of your choosing.

Once you have done this, please click Add/modify authorized user.

 add or modify user

Step 7: You will then be shown a confirmation screen confirming the creation of that user.

Once you see this screen, please click Go back to return to the cPanel account.

Congratulations! You have now successfully password protected a directory on your account. You can repeat this process for any directory you wish to protect. If you encounter any difficulties or require any assistance in this process, please feel free to contact our technical support team. They are happy to help you with any issues you encounter.

    • Related Articles

    • How To Password Protect A Directory

      This article will provide instructions on how to password protect any directory on your server using the cPanel interface. Please note the following from cPanel about password protected directories: Password protection allows you to require a ...
    • How To Add FTP Accounts In Your cPanel

      This article was created to assist you with the setup a FTP account in cPanel. Step 1: Log into your CHI dashboard at chi.uk2.net. Step 2: Navigate to your shared hosting cPanel account. Step 3: Under the “Files” section click the “FTP ...
    • How To Create A Backup of A Website Via FTP

      When making a local backup via FTP, you will copy and paste the files from the folder on the server to another folder on your computer. This is almost identical to how you would copy files on your computer, the difference is that you will use ...
    • How To Upload Files To My Website

      *This article applies to all CHI Shared Hosting and Reseller services. This article was created to assist you in uploading files to your hosting account. The easiest and most preferred method for uploading files is to use an FTP Client. How To Access ...
    • How To Use File Manager In CPanel

      What is File Manager? The File Manager allows you to manage your site through your browser within cPanel rather than an FTP tool or other third-party application. You can upload, create, or delete files as well as edit, view, and organize files in ...