I\'d like, for example, block every IP from base 89.95 (89.95..). I don\'t have .htaccess files on my server, so I\'ll have to do it with PHP.
.htaccess
Convert the dotted quad to an integer:
$ip = sprintf('%u', ip2long($_SERVER['REMOTE_ADDR'])); // only allow 10.0.0.0 – 10.255.255.255 if (!($ip >= 167772160 && $ip <= 184549375)) { die('Forbidden.'); }