|
-
June 15th, 2002, 09:52 AM
#1
secure enough login???
I am planning on using the below code for a login sequence and I want to know if it's secure enough. I'm new to programming and scripting (this is pretty much all premanufactured) and I want to make sure it's in good working order. Please help me correct any mistakes in my code with explinations, thanks.... oh yeah this is going to be run in conjunction with an asp page to make it harder to view the source... in case you wondered.
<HTML>
<HEAD>
<script language="JavaScript">
<!--
// No rightclick script.
// Find more great scripts and applets at the JavaFile!
// http://www.javafile.com
// Do not delete this header!
var message="NO!"; // Put your message for the alert box between the quotes.
// Don't edit below!
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
<TITLE>yoursitetitle</TITLE></HEAD>
<BODY>
// HTML for top of page
<SCRIPT LANGUAGE=javascript>
// Courtesy of SimplytheBest.net (http://simplythebest.net/info/dhtml_scripts.html)
<!--
if(navigator.appName.indexOf('Microsoft')>=0)
{
document.write('Add to My Favorites');
}
// -->
</SCRIPT>
<center><font size="2" font color="#cc0033" face="Arial">Please login below</font>
<DIV ALIGN="center"><CENTER>
<FONT SIZE="-1" COLOR="#FF0000">
</FONT>
</P>
<FORM METHOD="POST" ACTION="http://www.yoursitename.com/cgi-bin/auth/wwwauth.pl">
Enter Your Username:
<INPUT TYPE="text" SIZE="10" NAME="uid">
Enter Your Password:
<INPUT TYPE="password" SIZE="10" NAME="passwd">
<INPUT TYPE="hidden" NAME="session" VALUE="8cxP5OIdB2bR">
<INPUT TYPE="submit" VALUE="Log In!">
</P>
</CENTER>
</DIV>
<center><font size="2" font color="#cc0033" face="Arial">Forgot your password? Click Here</font>
</center>
<center><font size="2" font color="#cc0033" face="Arial">If you are having problems logging in:
Make sure your cookies and java scripts are enabled.
Be sure you got to this page from www.yoursitename.com.
Try shutting down your browser completely (that will
clear the current cookie), restart it and try again.</FONT>
<center><font size="2" font color="#cc0033" face="Arial">If you need more assistance, Click Here</font>
</CENTER></DIV></FORM></BODY></HTML>
</BODY>
</HTML>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|