Bueno, Dave... la forma mas propia seria usar PHP puro para hacer
esta operacion...
ejemplo :
Código:
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$ip_list = array("91.214.44.228","76.31.76.20");
for($i=0;$i < count($ip_list);$i++){
if($ip_list[$i] == $ip){
exit;
}
}
?>
save that file as : ip_check.php
and at the start of each file in your server add :
Código:
<?php
include("ip_check.php");
?>
remember it should be at the begin or else the page will load
before the check is executed, i guess that's the problem with your
javascript solution.