I just created a script that allows only localhost or 127.0.0.1
to access the Abyss Web Server , I know i catch on to PHP fast
lol , any way here it is , only localhost is granted permission.
Name this index.php
<?php
if ($REMOTE_ADDR == "127.0.0.1") {
header("Location: /main.html");
}else{
print "Only localhost is allowed in!";
}
?>
If I can learn PHP so fast than you too can do the
exact same crap I do , Larry Ullman's books rule!
You have to check his books out , by the way
I didn't get that code from the book , I made it up
Edit: This code will only work inside index.php , if you want to
add this to your other php pages , you will need to insert that
code in every php page in order to validate all web pages in php.