Password protect a directory on your website

How to Password protect a directory on your website

You can password protect folders in your account without having to deal with the hassle of .htaccess. To password protect a directory in your site, log in to CPanel. From there, click on the button labeled Password Protect Directories:

On the next page, a list of all of the folders in your site will appear. Click on the one you wish to protect.

On the next page, there should be a text box labeled "Protected Resource Name".

In that, type what you want to appear on the password prompt that opens up when a user tries to access the directory.

Now at the bottom of that page, enter a username and password that you wish to use to access the directory. You may also add additional users if you wish.

  • 17 Users Found This Useful
Was this answer helpful?

Related Articles

Download the cPanel Manual

  cPanel is a next generation web hosting control panel system, you will find cPanel...

How do I login to my control panel?

You login to your control panel at http://www.yourdomain.com:2082 (your domain name followed by...

Setting up Custom Error Pages in cPanel

Setting up Custom Error Pages in cPanel The most common website errors such as 404 Page...

Creating Sub Domains

Creating Sub Domains using cPanel Sub-domains are a neat feature included on every hosting...