Frequently Asked Questions

Help Center Search

Protecting Your Web Pages with a Password

Print this Article
Comment on this Article
Last Updated: February 17, 2009 10:55 AM

If you feel comfortable doing so, you can create an .htaccess file to password protect a directory in your Linux hosting account. We cannot provide instructions or troubleshooting for this, but you can find tutorials and password generators at Apache's Web site.

You'll need to know the full server path of your Linux hosting account to create an .htaccess file. It is:

/home/content/u/s/e/username/html

Replace "u," "s," and "e" with the first three letters of your hosting login, and "username" with your full hosting login. This is not your customer account login, but rather, the login you use to FTP files to your site. For example, the hosting login "maynard" would translate to the following path:

/home/content/m/a/y/maynard/html

Alternately, you can find the full server path by embedding the following script in a file, and then uploading and running the file:

<?
echo __FILE__;
?>

You can also use JavaScript to create a very basic (and non-secure) form of password protection on our Linux-based hosting plans.

If you have a Deluxe or Unlimited Hosting plan, you could also use Perl to develop password protection, though some programming skill would be required.