Sanders Hosting Linux Based Quality Web Hosting
Latest News / Updates
10 May 2004
Our reseller accounts disk space and bandwidth have been increased to the same levels as our regular accounts. This is the perfect way for a new web hosting company to resell our web space under there own name, or for current customers to get a great deal on a second account.
PayPal Verified
Control Panel Login
Domain Search
Welcome to
FAQ: Account features

  • How do I setup a protected directory?
    Note: setting up a password protected directory requires knowledge of your account's shell (bash) and Telnet. Since Sanders Basic accounts have no shell access, let us know which directory you wish to protect and we'll do it for you. This feature will soon be available in the control panel (if it isn't there already).

    First, we need to create the username and password to be used to login to the protected directory. On your account's shell, go to the directory you wish to protect, and enter the following command:

      htpasswd -c .htpasswd USERNAME

    Replace USERNAME with the username you wish people to use to login to the directory. Once you press the ENTER key, htpasswd will ask for the password, and will then proceed to encrypt it. A file called .htpasswd will be created on that directory.

    Note: files with a dot as the first character of a filename are "hidden". A "ls" command alone will not list them. Only "ls -a" will show such hidden files.

    Then, create a file called .htaccess on the directory you wish to protect. This file should contain the following text:

      AuthType Basic
      AuthName NAME OF SITE
      AuthUserfile /PATH TO DIR TO PROTECT/.htpasswd
      <Limit GET>
      require valid-user

    Replace NAME OF SITE with your site's domain (, and /PATH TO DIR TO PROTECT/ with the path of the .htpasswd file (example: /home/users/y/

    Note: you can get the path by using the command 'pwd'.
Home:: Contact:: Support© 2003 Sanders Hosting