Reply LinkBack Thread Tools Search this Thread
Old 16-04-2007, 16:03   #1 (permalink)
helenroskil
Registered User
 
Join Date: Apr 2007
Posts: 3
Password protected page - help!!

I need to make a members only page, and have made a page for user-ID and password. But it is so simple that anyone with minimum html-knowledge will be able to see the password in the code, and it is possible to get straight to the members page by putting member.html after domain name.
How do I hide user-ID and password in the script? (I have never used database, but maybe the clue is to hide them in a DB?), how do I hide the address of the members page? Will I have to use CGI or PHP? I am not familiar with this.
Any suggestion will be highly appreciated. I use dreamweaver, by the way. Thanks.
  Reply With Quote
Old 16-04-2007, 16:09   #2 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Quote:
Originally Posted by helenroskil
Will I have to use CGI or PHP?
PHP/MySQL is your best bet.

It's not in the scope of a forum thread to explain how, really.

You can also use .htaccess password authentication if you are on an Apache server. Google it.
  Reply With Quote
Old 16-04-2007, 16:48   #3 (permalink)
gk
geek
 
gk's Avatar
 
Join Date: Oct 2006
Location: *.everywhere
Posts: 204
Send a message via ICQ to gk Send a message via AIM to gk Send a message via MSN to gk Send a message via Yahoo to gk
if you're dealing with a small number of people and htaccess/htpasswd file would work.
  Reply With Quote
Old 16-04-2007, 21:04   #4 (permalink)
helenroskil
Registered User
 
Join Date: Apr 2007
Posts: 3
Thanks

Thanks, people,

I googled it, and it is a start! Now I only have to read some pages
  Reply With Quote
Old 27-04-2007, 08:14   #5 (permalink)
ab
Media monkey
 
ab's Avatar
 
Join Date: May 2004
Location: Riga
Posts: 9
Send a message via Skype™ to ab
If you'll use the PHP thing, then stick to sessions, they are as easy as just starting a session, writing a session if password is OK and letting the user enter or kick him out otherwise. Just couple lines of code.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8