Click to See Complete Forum and Search --> : Simple Password


geobas
02-13-2008, 08:58 AM
Greetings to all
l am a beginner so l expect you'll understand .
l have a index.html and would like to place a simple password , just password NO user and other complicated things , so the user ,once entering the correct
password and clicking an Enter button should allowed to proceed to my welcome.html and from there to my other pages , page1.html , page2.html etc
It goes without saying of course that all my pages should be protected and cannot be opened unless the correct password entered in the index.html
What code should l use please ?
Thank you for replies

TheRave
02-13-2008, 09:36 AM
I would suggest you use .htaccess to protect the pages how you describe.

Look up .htaccess password protection.

yamaharuss
02-13-2008, 10:30 AM
(htaccess is assuming he is on Linux.)

Can you tell us what language(s) your server supports?

Jeff Mott
02-13-2008, 10:54 AM
htaccess is assuming he is on Linuxhtaccess files belong to the Apache Web server, and Apache can run on either Unix or Windows (and probably Mac too).


I agree with TheRave that htaccess is the simplest way that is also secure.

yamaharuss
02-13-2008, 10:57 AM
You're correct. However, the assumption was still made that htaccess is used.

geobas
02-13-2008, 11:10 AM
l am working on windowsXP and the server supports Linux

geobas
02-13-2008, 11:13 AM
Thanks for responding .
Sorry l forgot to mention that this is going to be a desktop application as well as a site in the Internet .
Thanks

Jeff Mott
02-13-2008, 11:21 AM
l forgot to mention that this is going to be a desktop application as well as a site in the InternetI'm assuming that by desktop application you mean that the page(s) won't be accessed through a Web server, but rather as files on the user's computer. Is that right?

If so, then this task is a bit more complicated. Any server-side solution isn't an option without a server. So you're left with client-side solutions, meaning JavaScript. JavaScript password protections can be secure, but it's tricky.

geobas
02-13-2008, 12:12 PM
Thanks again . l'll see what l can find .