password

macFan127

Beta member
Messages
3
how do i make a password box like the one below? :D

2006_password_box.jpg
 
to get boxes like that you'd mostly set directories as secure at the server level rather than writting a page to do the login.

as to how you do it, that'd really depend on your server setup.
 
with apache it is fairly simple...

go into the folder you want to secure...then create two files...

.HTACCESS
.HTPASSWD

then go into .htaccess with notepad and add the following text,

AuthType Basic
AuthName "NAME OF THE PASSWORD BOX"
AuthUserfile "../htdocs/FOLDERYOUWANTTOPROTECT/.htpasswd"
Require valid-user

then go in to .htpasswd with notepad and type the username and password in the following format

testuser:testpassword
and repeat as neccesary..

any questions, let me know.
 
Back
Top Bottom