BobMarion
Former Admin in Good Standing

Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)
|
Posted:
Wed Dec 15, 2004 1:33 am |
|
Find in includes/sentinel.php:Code:// Check for Referer
$blocker_row = $arrayreferer;
if($blocker_row['activate'] > 0) {
$RefererList = explode("\r\n",$blocker_row['list']);
$streferer = get_referer();
for ($i=0; $i < count($RefererList); $i++) {
$refered = $RefererList[$i];
if (stristr($streferer, "$refered") AND $refered != "") {
$abmatch = $refered;
block_ip($ip, $banuser, $bantime, $blocker_row, $abmatch);
}
}
}
// Check for Harvester
$blocker_row = $arrayharvester;
if($blocker_row['activate'] > 0) {
$HarvestList = explode("\r\n",$blocker_row['list']);
$agent = get_user_agent();
for ($i=0; $i < count($HarvestList); $i++) {
$harvest = $HarvestList[$i];
if (stristr($agent, "$harvest") AND $harvest != "") {
$abmatch = $harvest;
block_ip($ip, $banuser, $bantime, $blocker_row, $abmatch);
}
}
}
// Check for Strings
$blocker_row = $arraystring;
if($blocker_row['activate'] > 0) {
$StringList = explode("\r\n",$blocker_row['list']);
for ($i=0; $i < count($StringList); $i++) {
$stringl = $StringList[$i];
if (stristr($querystring, "$stringl") AND $stringl != "") {
$abmatch = $stringl;
block_ip($ip, $banuser, $bantime, $blocker_row, $abmatch);
}
}
}
// Check for Request
$blocker_row = $arrayrequest;
if($blocker_row['activate'] > 0) {
$RequestList = explode("\r\n",$blocker_row['list']);
$method = get_request_method();
for ($i=0; $i < count($RequestList); $i++) {
$request = $RequestList[$i];
if (stristr($method, "$request") AND $request != "") {
$abmatch = $request;
block_ip($ip, $banuser, $bantime, $blocker_row, $abmatch);
}
}
}
| and replace with:Code:// Check for Referer
$blocker_row = $arrayreferer;
if($blocker_row['activate'] > 0) {
if($RefererList > "") {
$RefererList = explode("\r\n",$blocker_row['list']);
$streferer = get_referer();
for ($i=0; $i < count($RefererList); $i++) {
$refered = $RefererList[$i];
if (stristr($streferer, "$refered") AND $refered != "") {
$abmatch = $refered;
block_ip($ip, $banuser, $bantime, $blocker_row, $abmatch);
}
}
}
}
// Check for Harvester
$blocker_row = $arrayharvester;
if($blocker_row['activate'] > 0) {
if($HarvestList > "") {
$HarvestList = explode("\r\n",$blocker_row['list']);
$agent = get_user_agent();
for ($i=0; $i < count($HarvestList); $i++) {
$harvest = $HarvestList[$i];
if (stristr($agent, "$harvest") AND $harvest != "") {
$abmatch = $harvest;
block_ip($ip, $banuser, $bantime, $blocker_row, $abmatch);
}
}
}
}
// Check for Strings
$blocker_row = $arraystring;
if($blocker_row['activate'] > 0) {
if($StringList > "") {
$StringList = explode("\r\n",$blocker_row['list']);
for ($i=0; $i < count($StringList); $i++) {
$stringl = $StringList[$i];
if (stristr($querystring, "$stringl") AND $stringl != "") {
$abmatch = $stringl;
block_ip($ip, $banuser, $bantime, $blocker_row, $abmatch);
}
}
}
}
// Check for Request
$blocker_row = $arrayrequest;
if($blocker_row['activate'] > 0) {
if($RequestList > "") {
$RequestList = explode("\r\n",$blocker_row['list']);
$method = get_request_method();
for ($i=0; $i < count($RequestList); $i++) {
$request = $RequestList[$i];
if (stristr($method, "$request") AND $request != "") {
$abmatch = $request;
block_ip($ip, $banuser, $bantime, $blocker_row, $abmatch);
}
}
}
}
|
Long story short, I forgot to check for empty fields  |
_________________ Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! |
|