+1-855-211-0932 (ID:287497)
Don't have a Hosting account yet? Sign up now!

HomeBest HostinHow to Password Protect a Directory or URL

How to Password Protect a Directory or URL

How to Setup Password Protection for a Certain Directory or Web Address (URL)

This guide explains how to protect a specific folder on your website with a password.

 

Using Password Protected Areas

To password protect a folder, follow these steps:

  1. Access the Password Protected Areas section of your Web Hosting Control Panel (usually under Advanced).
  2. Select the domain or subdomain you want to protect.
  3. Specify the folder path you want to protect in the Path field.
  4. Create a username and password for the protected area.
  5. Enable the password protection.

Important Considerations

If there's an existing .htaccess file in the folder you're protecting, password protection might not work correctly.

To resolve this:

  1. Rename the .htaccess file to temporarily disable it.
  2. Enable password protection.
  3. Rename the file back to .htaccess.
  4. Locate a file named .htacl in the same folder.
  5. Copy the contents of .htacl into the .htaccess file.

Use the File Manager in your Web Hosting Control Panel (usually under Files > File Manager) to perform these file operations.



Tags:

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>