PDA

View Full Version : Exclude IPs from Banned range and more...


psico
02-14-2002, 01:13 PM
At my board I need to exclude for example the range 200.x.x.x but I need to exclude for example 200.1.1.1 from the banned range.

Also I need to ban for example the range 192.168.40.1 through 192.168.128.254 and the only way today is entering:

192.168.40.
192.168.41.
192.168.42.

etc...

Is there any posiblity to make a Hack for improve this feature of vBulletin?

Thanks a lot in advance!!

Sorry about my bad English!!

Psico.

psico
03-06-2002, 07:20 AM
Please any ideas for this?
I really need it!!
This is the function from vBulletin:

// ###################### Start checkipban #######################
function checkipban() {
// checkes to see if the current ip address is banned
global $enablebanning,$banip,$webmasteremail,$session;

$banip = trim($banip);
if ($enablebanning==1 and $banip!="") {
$ipaddress=getenv("REMOTE_ADDR");

$addresses=explode(" ", preg_replace("/[[:space:]]+/", " ", $banip) );
while (list($key,$val)=each($addresses)) {
if (strstr(" ".$ipaddress," ".trim($val))!="") {
eval("standarderror(\"".gettemplate("error_banip")."\");");
}
}
}
}