Password Protect a folder on your website
If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

HostMonster Web Hosting Help

Password Protect a folder on your website

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 HostMonster account.
  • The path and name of the folder you want to protect with a password.

Access The Password Protect Directories Tool

  1. Log in to your HostMonster cPanel account.
  2. Make sure you are on the cPanel tab at the top of your account.
  3. Scroll down to the Security group of icons and click on Directory Password.

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 name.
  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. On the Password Directories page, scroll down and 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 Add or Modify The Authorized User 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.

Knowledgebase Article 316,313 views bookmark tags: folder password protect


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

What should I do if I am having problems with multiple password prompts on my password protected directory?
Knowledgebase Article 244,077 views tags: folder password protect

How do I Password Protect a single file on my website?
Knowledgebase Article 289,165 views tags: file passwd password prompt protect secure single

How do I change my Control Panel password?
Knowledgebase Article 1,720,463 views tags: change cpanel password passwords protect

Related Help Content

How can I protect the images on my website?
Knowledgebase Article 292,772 views tags: click code image images javascript protect save saving script tips tricks

This article will explain how to change the password for a database in the event that the original password is lost.
Knowledgebase Article 265,392 views tags: database mysql password

This article explains the different password types for your hostmonster account.
Knowledgebase Article 235,586 views tags: billing cpanel hosting main password

I need to protect the /images folder to not show images when people type in the correct URL like www.mydomain.com/images/ to protect from prying eyes.
Knowledgebase Article 174,493 views tags: hotlink htaccess protection

I am prompted to set a new MySQL password. What does this mean and how do I change it?
Knowledgebase Article 250,916 views tags: connect database mysql password phpmyadmin username

Instructions for restting your Email Account's Password through cPanel or Webmail
Knowledgebase Article 609,650 views tags: email forgot password reset webmail

This article will explain how to change or reset the password for a MySQL user.
Knowledgebase Article 156,443 views tags: change mysql password reset user

This article will show a way to protect specific pages of your website with SSL. This may have benefits for SEO and can be used on pages that contain forms, shopping carts or any other page where users might enter sensitive information.
Knowledgebase Article 122,577 views tags: htaccess pages specific ssl

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here