PHP Code:
$ip = $_SERVER['REMOTE_ADDR'];
$ip = str_replace(".","",$ip);
$ip_from = "192.168.0.0";
$ip_to = "192.168.255.255";
$ip_from = str_replace(".","",$ip_from);
$ip_to = str_replace(".","",$ip_to);
if ($ip < $ip_from || $ip > $ip_to) { die("Denied"); }
Shouldn't that work?
