PDA

View Full Version : Gate Keeper JavaScript


spunky1
11-19-2002, 04:21 PM
:confused:
I'm using the Gate Keeper JavaScript on my page. When someone enters a wrong password it goes to that page that they entered, (ie. if they enter the password "rift" they will be taken to rift.htm, or a default "cannot display page") is there anyway to send them to a page that says "wrong password" or something like that, just a page that says wrong password.

Please help.

Thanks
Ben

beetle
11-19-2002, 04:48 PM
That 'protection' system relies on the filename of the HTML page. Basically, all the system really does is send you to a new URL based on what is entered. Javascript CANNOT determine of the file is actually there or not, it just generates the URL an sends the browser there. So, the problem you describe is actually a 'feature' of that script.

spunky1
11-19-2002, 04:54 PM
That kinda sucks, can you recommend a better protection script.

Thanks
Ben

Borgtex
11-19-2002, 04:59 PM
Take a look at this thread:
http://www.codingforums.com/showthread.php?s=&threadid=9228

and in the 9th post you will find my answer for what you're asking for.

spunky1
11-19-2002, 05:09 PM
Thanks Borgtex, so that script is just pasted on a blank page(I'm not that advanced of a java person)

and then create a page *.js for every user ???

??

beetle
11-19-2002, 05:10 PM
Nice borgtex! Here's another one, never used it though...

http://octane-design.biz/try/free/js/passwords.html?login

Borgtex
11-19-2002, 07:53 PM
Originally posted by beetle
Nice borgtex! Here's another one, never used it though...


and don't use it! it's the perfect example of a bad coding, and worse simplification. You can easily see all the logins & paswords.

As for the script that I use, You can download a running one here: http://www.codingforums.com/showthread.php?s=&threadid=10114