Shoutbox

Password On a Website - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Password On a Website (/showthread.php?tid=58335)

Password On a Website by Eddie on 04-15-2006 at 09:40 AM

Does anyone know how to do code so you have to enter a password to enter a website?? *-)


RE: Password On a Website by M73A on 04-15-2006 at 09:42 AM

you can use a java script password.... but if they disable javascirpt then they can get it...

does your host have cpanel? you can use that to password stuff in the options of the directories iirc


RE: Password On a Website by Chestah on 04-15-2006 at 10:24 AM

use a .htacess file. Google ;)


RE: Password On a Website by Rik on 04-15-2006 at 10:58 AM

check this: http://javascript.internet.com/passwords/login-coder.html
if you want something more professional check this : http://www.cgiextremes.com/extras/Tips_Tutorials/htaccess.html (like chestah said)


RE: Password On a Website by Plik on 04-15-2006 at 03:25 PM

NEVER EVER use javascript for password protecting a webpage. The js code is run on the clients side, meaning all the code is sent to the user before its executed.
This means that they will easyly be able to see what the password is.

Either use .htaccess or php


RE: Password On a Website by absorbation on 04-15-2006 at 08:09 PM

.htaccess is the easiest way. And it is sercure. :P
http://www.javascriptkit.com/howto/htaccess3.shtml