PDA

View Full Version : .htaccess and .htpasswd


Papy
August 26th, 2004, 10:22 AM
Hi,

I want to password protect my directory on server using .htaccess and .htpasswd files.

the directory i want to protect is 'aftron' the code for the .htaccess file goes like this

AuthUserFile /home/comsdev/passwords/aftron/.htpasswd
AuthType Basic
AuthName 'Secret Place'
require valid-user

the code for .htpasswd file goes like this

michel:123

now when i browse to th index page of protected directory (aftron) i get the dialog box asking username and password but after three tries i get the 'Authentication Required' error ...

why is it so..???

ive also checked the location of both .htaccess and .htpasswd files on server they are present there path for .htpasswd file given in .htaccess is also correct ...wht could be the reason ....

Anybody help me solve this issue plzzzz.

Thanx

degsy
August 26th, 2004, 02:57 PM
you need to encrypt the value

http://www.google.com/search?hl=en&ie=UTF-8&safe=off&q=.htpasswd+generator&spell=1

Papy
August 27th, 2004, 06:45 AM
Thanxxx alooooottt!!!!

It's fixed now...

Thanx Again!