Forum Moderators: open

Message Too Old, No Replies

Need help "Loggin In"

         

Webguy22

5:54 am on Nov 2, 2003 (gmt 0)

10+ Year Member



I could use some help making a page that you need a password to get into. I havent hade to much luck. (Although Im sure it is easy)I dont need there to be both a user name and password just a lock on the page where the viewer must type in a password to get in.

Please help the "Newb"

Thanks

jamesa

7:24 am on Nov 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There's two directions you can go:

- Put the page in a directory and secure the directory using .htaccess (assumes a unix server).

- Put a script at the top of the page that tests whether the user provided a valid password. Display the page if they did, display a login screen if they didn't.

keyplyr

8:07 am on Nov 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Webguy22, you may be able to find a script to your liking at hotscripts.com > Perl > Scripts_and_Programs > Password_Protection

Shannon Moore

8:51 pm on Nov 4, 2003 (gmt 0)

10+ Year Member



Also, the page you create won't have a literal "lock" displayed -- that is displayed in browser's when a page/site employs SSL encryption (implemented with a shared or personal SSL "certificate").

DrDoc

9:15 pm on Nov 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Put the page in a directory and secure the directory using .htaccess (assumes a unix server)

Actually, it assumes nothing but Apache Web server...