I typed in a little code that some of you might like. It is used so that people must enter in a password using a script prompt, and then it redirects them in a few seconds. I typed in the code below. copy it and save it into your comp as "something.htm" and then copy its location as your home page. To make it redirect to your homepage and make your password, type them in where I put "ENTER PASSWORD" or "ENTER HOME PAGE HERE" . (NOTE: It also prevents right click during the r seconds where you are redirecting so it takes more time to view source, so others probably won't edit it.)
<HTML>
<HEAD>
<TITLE>Log Onto The Internet</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
color: black;
background: white;
font: bold 18pt Verdana, Arial, Helvetica, sans-serif;
text-align: center;
}
div.counter {
margin-top: 20px;
color: blue;
font-size: 60pt;
cursor: default;
}
div.info {
margin: 0 auto;
text-align: left;
font-size: smaller;
width: 80%;
margin-top: 2em;
}
</style>
<script language="JavaScript">
function coolRedirect(url, msg)
{
var TARG_ID = "COOL_REDIRECT";
var DEF_MSG = "Redirecting...";
if( ! msg )
{
msg = DEF_MSG;
}
if( ! url )
{
throw new Error('You didn\'t include the "url" parameter');
}
var e = document.getElementById(TARG_ID);
if( ! e )
{
throw new Error('"COOL_REDIRECT" element id not found');
}
var cTicks = parseInt(e.innerHTML);
var timer = setInterval(function()
{
if( cTicks )
{
e.innerHTML = --cTicks;
}
else
{
clearInterval(timer);
document.body.innerHTML = msg;
location = url;
}
}, 1000);
}
</script>
<script language="JavaScript">
<!-- Hide
var message = "No right click!";
function clickIE(){
if (event.button == 2){
alert (message);
return false;
}
} function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which == 2 || e.which == 3){
alert (message);
return false;
}
}
}
if (document.layers){
document.captureEvents (Event.ONMOUSEDOWN);
document.onmousedown = clickNS4;
}
else if (document.all){
document.onmousedown=clickIE;
}
document.oncontextmenu = new Function("alert(message); return false;");
//-->
</script>
<script language="JavaScript">
var password = "ENTER THE PASSWORD IN HERE BETWEEN THE QUOTES!";
var answer;
while (answer != password){
answer = prompt("Enter the password to run the Internet.", "");
}
</script>
</HEAD>
<BODY onload='coolRedirect("ENTER YOUR HOME PAGE HERE BETWEEN THE DOUBLE QUOTES!")'>
<div class="info"> You will be redirected in...</div>
<div class="counter" id="COOL_REDIRECT">2</div>
</BODY>
</HTML>