1. Make an .htpasswd file. The htpasswd command in Unix does this. You should put the password file outside of your web directory. So a command like “htpasswd -bc /home/matt/.htpasswd review donotenter” will create a new file using a username of review and a password of donotenter into the file /home/matt/.htpasswd . If you were to run the command “cat /home/matt/.htpasswd” you might see a line like “review:M1OdtjdGiDn1Y”.
  2. Make an .htaccess file. In this case, the file would be located at /home/matt/www/.htaccess and it would look something like
    AuthUserFile /home/matt/.htpasswd
    AuthName EnterPassword
    AuthType Basic
    <Limit GET POST>
    require valid-user
    </Limit>

http://www.mattcutts.com/blog/htaccess-101/

http://www.maths.ox.ac.uk/help/faqs/www/htaccess

Posted Thursday, February 28th, 2008 at 4:25 pm
Filed Under Category: UNIX Hosting
Responses are currently closed, but you can trackback from your own site.

0

Comments are closed.