htpasswd help
- Started
- Last post
- 3 Responses
- vsc
hello. i'm trying to setup a restricted admin dir.
root/admin
I have the htpasswd and htaccess files in the /admin. I'm sure they are correct. It seems to work when you try to access the dir, but after you put the user+pass the prompt shows up again and again.
Any hints on why this is happening? thanks.
- ribit0
not sure about that problem, but I think for security the .htpasswd file should be above your web-accessible directory. Only the .htaccess file needs to be in the protected directory
- welded0
The password file doesn't need to be outside the web directory, but it's certainly a good idea. The problem is probably the contents of the file. Try using a password encrypter, like the one below, to set up the passwords.
http://www.flash.net/cgi-bin/pw.…
- vsc0
ok thanks. i have them encrypted but maybe something went wrong. i'll try that again. i'll try putting the htpass in the web root as well. thanks.