How do I password-protect my website using .htaccess?

Making a quick alteration to your .htaccess file can be used to lock out areas of your website. It will protect any folder you select as well as and everything below it.

If you wish to protect your entire website, simply setup htaccess in your public_html directory (the root of your website). However, if you only wish to protect certain directories, you will need to set this up separately.

For updated information on how to password-protect your website using .htaccess, simply do a Google search for "how do I password protect my website using .htaccess", and you'll get a good answer.

Example:
http://webdesign.about.com/od/security/a/password_protec.htm

NOTE: You will also need to know your Absolute path -- which is /home/yourusername/public_html/ -- in order to complete the process.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How do I import large amounts of data into a MySQL database?

Is there a batch process to download a large number of items into my database (without having...

Do you support JSP?

  No. Unfortunately Aryup does not support any type of Java Servlets at this time. Aryup offers...

I just changed some web files. I'm sure I did it right. Why won't my site load properly?

  The most common reason for this is your web browser's cache. Clear it, and try previewing your...

Quels sont les constructeurs Internet français disponibles?

Nous avons quelques suggestions de constructeurs français de site internet pour vous. Les voici...

What is a hit counter and how do I make one?

A hit counter, or web counter, is a computer software program that indicates the number of...