Password Protect a folder on your website

Overview

This article explains how to add password protection to a folder on your website

What You Need

You will need the following items to complete this walkthrough.

  • The username and password to your Bluehost account.
  • The path and name of the folder you want to protect with a password.

Access The Password Protect Directories Tool

  1. Login to your cPanel
  2. Go to Directory Privacy   

Protecting a Directory

  1. Navigate the folder structure and select the directory you want
    NOTE: To open a folder and see its contents click the folder. To select a folder for password protection click on the folder icon.
  2. Choose the "Password protect this directory" option.
  3. Enter the name for the directory, this will appear whenever someone access the directory.
  4. Click save

Adding A User

  1. Under Create user, add a username in the the username box.
  2. In the password boxes type the password you would like the user to have
  3. Click the "Save" button
The folder you selected will now require a username and password to gain access. You can use the username and password you created to gain access.

Was this answer helpful?

 Print this Article

Also Read

cPanel Exim How To Clear The Mail Queue

Here’s the proper way to clear the exim mail queue on a cpanel server. /etc/init.d/exim...

How to create a cPanel user account?

To create a new cPanel account go to WHM >> Account Functions >> Create a New...

Clone a cPanel server configuration to a new server (excluding server specific items)

As a Server Administrator, I want the ability to clone a cPanel server to a new setup, so that...

What is the difference between Local, Backup, and Remote Mail Exchanger in cPanel?

These are options for the DNS zone for a domain in cPanel. Essentially, this tells cPanel how you...

How to whitelist your IP at CPHulk

IF IP got banned by CPHulk few times and it is really not a pleasant thing knowing that you need...

Powered by WHMCompleteSolution