this is the code i put at hte top of my page
<?php
if ($path){
$ips = file("$path/lists/adminips.php");
} else {
$ips = file("lists/adminips.php");
}
if (in_array(!$REMOTE_ADDR,$ips)) {
echo("You are not allowed to view the admin page.");
die;
}
?>
in lists/adminips.php i dont put my IP but i can still get in