Love the script. Seems preety secure against most users; I don't plan on using it to secure anything important. I've been looking casually for a password gate with several user names and of all the oones I've seen, this is by far the easiest. Good job!
Nice script. I´ve run it in a php-linux host, it goes well.
It can be incremented with some security issues, like prevent the user from reach the target page without passing through login page.
I think the most skilled crackers would check if the login and password isn´t the name of one of the pages in the server hehehe
The idea of hiding information that is passing trough fields with JScript and VBScript is quite nice, but i´ll never use it on a project, no matter how simple it is.
__________________
----
As coisas mais simples são as mais importantes.
---------
Thompson M1A1: D-Day
----------------
I'm new to javascript & this forum, I want to use this script but am having a problem. I'm also not a html pro, but maybe you can offer advice. When I am making a custom index page with my login area, I add the code for the body into the body section of my html, but when I load the page the code for the login overrides everything else I coded before it and places the login in the upper left corner where my other code should be. Maybe this is a simple html thing, but i need help adding this script into my page. Could anyone please look at the way I have my login page set-up and tell me where to fit the body part of the script so it will work where I would like it to? Here is the address: www.starlight-myst.com/DD, you can send me an e-mail if you'd like.. to whystarasilvrain@aol.com otherwise I'll just look back in here.
I have placed the code within my logon site nut i cant seem to get it to work properly. It just passes me on to the blind.htm page in my site.
here is my code
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Admin Login</title>
<script type="text/javascript">
<!--
function authPass(u,p) {
if (u && p) self.location = "blind.htm?" + u + p;
return false;
}
// -->
</script>
Is there anyway to lock the page.htm? Because if I just enter, example: www.codingforums.com/page.htm it allows me to see the page even though I not entered a username and password. Thanks for any help.
Thanks borgtex. I couoldn't use php because i don't have it on my pc. This is brilliant. Everone says you can't get a secre login with javascript. but i just new you could.
I think you havn't put the source of the .js file in
try doing this
<script language="text/Javascript" src="[location of the .js file"]
I hope that helps!