0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<title>Verses Inc.</title>

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username=="username" && password=="password") { window.location="page1.html"; done=1; }
if (username=="member2" && password=="password2") { window.location="page2.html"; done=1; }
if (username=="member3" && password=="password3") { window.location="page3.html"; done=1; }
if (done==0) { alert("Stop trying to hack accounts."); }
}
// End -->
</SCRIPT>

<!-- Script Size:  1.60 KB  -->

<BODY>

<center>
<form name=login>
<table width=225 border=1 cellpadding=3>
<tr><td colspan=2><center><font size="+2"><b>Verses Admins Only</b></font></center></td></tr>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<tr><td>Password:</td><td><input type=text name=password></td></tr>
<tr><td colspan=2 align=center><input type=button value="Login" onClick="Login()"></td></tr>
</table>
</form>
</center>

</body>
</html>

Can someone give me an example in the list and highlight it red?

Edited by pyTony: fixed formating

3
Contributors
2
Replies
3
Views
12 Years
Discussion Span
Last Post by peter_budo
0

Whats stoping someone from viewing the source?

The only reliable way to have some sort of website authentication is to use a SSL (Server Side Language) and or httpauth whith is provided by apache.

0

Zachary, looks like people don't bother to check older treads!!! :sad:

This is already 4th or 5th person in past 10 days asking same question, which you answered previously.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.