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

    • Website Hosting

      Skip to end of metadata Go to start of metadata Reseller Hosting Reseller cPanel How To Access cPanel Webmail How To Change Your Email Address Password In CPanel How To Configure Email Addresses Created With CPanel How To Create An Email Account In ...
    • 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 ...
    • cPanel Web Hosting

      Skip to end of metadata Go to start of metadata Introduction to cPanel Database How To Use CRON To Do Scheduled Database Backups How To Use The MySQL Database Wizard How To Backup Your Database Using PHPMyAdmin How To Use PHPMyAdmin Connecting To ...
    • Hosting

      Skip to end of metadata Go to start of metadata Cloud/VPS How To Create And Download A Backup On A VPS How To Delete Your Content On A VPS Dedicated Dedicated Server Hosting How To Create And Download A Backup On A Dedicated Server How To Delete Your ...
    • 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 being that you will use ...