Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 01-24-2007, 08:10 PM   #1
Beta Member
 
Join Date: Jan 2007
Posts: 3
Default password

how do i make a password box like the one below?

__________________

macFan127 is offline   Reply With Quote
Old 01-24-2007, 09:04 PM   #2
Beta Member
 
Join Date: Jan 2007
Posts: 3
Default Re: password

got it
__________________

macFan127 is offline   Reply With Quote
Old 01-24-2007, 09:20 PM   #3
Fully Optimized
 
^Mike^'s Avatar
 
Join Date: Oct 2005
Posts: 2,958
Send a message via ICQ to ^Mike^ Send a message via AIM to ^Mike^ Send a message via MSN to ^Mike^ Send a message via Yahoo to ^Mike^
Default Re: password

Quote:
Originally Posted by macFan127
got it
could you share that with me? I've always wanted to make one like that.
^Mike^ is offline   Reply With Quote
Old 01-25-2007, 06:01 AM   #4
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,003
Default Re: password

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.
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 01-25-2007, 08:56 AM   #5
Beta Member
 
Join Date: Jan 2007
Posts: 3
Default Re: password

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.
macFan127 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 06:55 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0