Gman_1212
12-29-2004, 12:10 AM
I need help making a password thing, where like people will have to type a password, if they get it right they can log onto my site, if wrong then they must try again, can someone help me with this?:D
|
Click to See Complete Forum and Search --> : HTML Help....Look inside... Gman_1212 12-29-2004, 12:10 AM I need help making a password thing, where like people will have to type a password, if they get it right they can log onto my site, if wrong then they must try again, can someone help me with this?:D Stephen Philbin 12-29-2004, 12:44 AM Sorry, but this can not be done with html alone. Do you have server side languages available to you? 1.elem3nt 12-29-2004, 08:43 AM http://javascript.internet.com/passwords/password-pro.html http://javascript.internet.com/passwords/prompt.html MstrBob 12-29-2004, 11:10 AM Originally posted by 1.elem3nt http://javascript.internet.com/passwords/password-pro.html http://javascript.internet.com/passwords/prompt.html Javascript password protection is laughable and very unreliable. If you actually wish to stop people who don't have the password from viewing your website, server side scripting is your best (and only bet). Well, aside from something like .htaccess protection. rsd 12-29-2004, 02:10 PM You can always turn JavaScrip OFF as well. Most web hosts offer password protected directories. You can usually set them up from your hosts control panel. That's what the .htaccess files are for. Gman_1212 12-29-2004, 09:39 PM See, really, I don't really know what server side scripting is, but I have heard about it before. Is it something like HTML, because if-so can someone make me a script? Thx a bunch :D MstrBob 12-29-2004, 11:59 PM Originally posted by Gman_1212 Is it something like HTML... ? No. No, not at all. First off, HTML is not a scripting language. It's a markup language. Scripting is very different from HTML. And the script you use depends on what type of server side scripting your server supports and what your requirments are. Gman_1212 12-31-2004, 10:50 PM I found this while browsing the net...may this be a password code? it is a .htaccess file. Sample .htaccess File: ------------------------ AuthUserFile /home/timl/public_html/secure/.htpasswd AuthGroupFile /dev/null AuthName ByPassword AuthType Basic <Limit GET> require valid-user </Limit> here is the link http://www.instanet.com/WebHelp/password.htm Stephen Philbin 01-01-2005, 03:03 AM That is something you will need to put in a seperate file on your server. Don't put it in your html file, place it in the .htaccess file on your host. I'm not sure if it's what you're looking for or not though. FrozenDice 01-01-2005, 04:52 PM Originally posted by Gman_1212 I found this while browsing the net...may this be a password code? it is a .htaccess file. Sample .htaccess File: ------------------------ AuthUserFile Needs to be the path to your .htaccess file AuthGroupFile /dev/null AuthName Name you want to display AuthType Basic <Limit GET> require valid-user </Limit> here is the link http://www.instanet.com/WebHelp/password.htm You also need to create a htpasswd file, which is avaliable on the site you posted. Gman_1212 01-02-2005, 02:15 PM Well, can someone make me the script, where I just have to put my password and stuff, cuz I'm not too famillar with this code I just posted :D. It would be greatly appreciated webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |