PDA

View Full Version : Simple Password Gate


brucebolt
06-23-2004, 06:34 PM
:) A basic three line JavaScript allowing users to log-on using a password. The password is the file name of the page, i.e. password for photos.html would be "photos". This script is not 100% secure. Free version includes ads. :)
Just visit http://scriptsearch.com/details/575.html to test and use the script!

neil9999
06-24-2004, 05:30 PM
A one liner:

<input type="text" id="thps"><input type="button" value="Go!" onclick="if(document.getElementById('thps').value=='enter'){window.location='http://www.google.co.uk'}else{alert('Password incorrect')}">

There are plenty of free things like that, many using server-side languages, out on the net.

Neil

jkd
06-24-2004, 07:38 PM
Neil, that's not the script he posted. He posted a gateway one, sort of like:

<form action="javascript://" onsubmit="window.location.href=this.elements[0].value+'.html'">
<input type="text"/><input type="submit"/>
</form>

brucebolt
04-06-2005, 09:16 AM
It can now be accessed by going to http://www.yoursitehere.uni.cc/scripts/spg/