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

How do I create a MySQL database and user in cPanel/WHM? How do I connect them?

To create a MySQL database and user, log into the cPanel interface for the desired domain and...

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...

Redirect HTTP TO HTTPS Automatically

If you need to create a .htaccess file, you can use your control panel's file manager.Using the...

URL Redirect/Rewrite using the .htaccess file

Summary By default your website can be accessed with both www.example.com and example.com....

.htaccess Tutorial

Summary In this tutorial you will find out about the .htaccess file and the power it has to...