Simple password protection 2

Even this script is not safe. You can also here look in the source and find out the password, even if you use "NoRightClick"




Put this between your HEAD-tags:
<script type="text/javascript" language="JavaScript">
<!--
function ChevkItOut()
{
if (document.Checkout.knapp.value=="passw1") {
alert("Correct password "+document.Checkout.knapp.value)
return true }
return false
}
//-->
</script>
Change passw1 with your own password.


Put this between your BODY-tags:
<form Name="Checkout" action="testfile.htm" onSubmit="return ChevkItOut()">
<input type="password" name="knapp">
<input type="submit" value="Go in!">
</form>
Change testfile.htm with your own adress to the password protected page or URL.



Free JavaScripts provided
by Winfolinx.com


Back