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.
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to create a cPanel user account?

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

How can I limit the number of emails a domain can send out per hour?

Click on the "Tweak Settings" link under "Server Setup". Within the "Mail" section is a text box...

How can I limit access to certain directories on my server by requiring a password using cPanel/WHM?

In cPanel, it is very simple to limit access to a directory on your server. This can be used to...

How do I prevent SSL Certificate Warnings when accessing cPanel?

All cPanel servers come with self-signed certificates configured to secure the control panel as a...

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

Powered by WHMCompleteSolution