Can I use htpasswd to password protect a directory?

Asked by:
sidd@patwardhans.net / 5 Points
Time:
2011-10-04 6:59 pm EST
Category:
How To
Hits:
1,057
I need to password protect a directory on my website, and I was trying to use .htpasswd to achieve this. I keep getting an "Internal Server Error" if I try to access that URL from a browser. The server logs don't seem to have a meaningful message (except that 501.shtml and 400.shtml files are not found). Is there anything else that I need to do get this set up? Is there any way to find out what may be causing the internal server error?

Thanks.

-- Sid.

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by Web Hosting Hub staff

0

ChristiNi
Staff
9,518 Points
2011-10-04 8:08 pm EST
Hello Sid,

I'm sorry you're having trouble password protecting your directory. I'm happy to help you with that. cPanel offers the option to password protect a directory and will write to the .htaccess file in order to accomplish that. For step-by-step instructions, please see How to Password Protect a Directory

Please let us know if you have any questions or need further assistance, we're always happy to help.

Thank you,

Christi N

To submit a comment on this answer, please first login.

Want to share this Question?

News / Announcements

Update to SSL Certificates - Certificate Warnings
1969-12-31 11:00 am EST
Hits: 680

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.