da
";die;
$_SERVER['HTTP_USER_AGENT']=str_replace('|','SST',$_SERVER['HTTP_USER_AGENT']); if (($_SERVER['HTTP_USER_AGENT']) == $nix) { $_SERVER['HTTP_USER_AGENT']='Keine Angabe / leer'; }
if (($_SERVER["HTTP_REFERER"]) == $nix) { $_SERVER["HTTP_REFERER"]='Direktaufruf'; }
if (($_SERVER['QUERY_STRING']) == $nix) { $_SERVER['QUERY_STRING']='Kein QS'; }
if (($title) == $nix) { $title='Kein Seitentitel angegeben'; }
$dokustring="🔒 GESPERRT|$sip|$host|".$_SERVER['HTTP_USER_AGENT']."|".$_SERVER["HTTP_REFERER"]."|$title|".$_SERVER['PHP_SELF']."|".$_SERVER['QUERY_STRING']."|".date("H:i:s d.m.Y")."|@ScrapTrap TeilHost-SPR|Grund: Sperre für Teilhostangabe $th[0]|".time()."$header_daten|||";
$delipstxt=fopen($stpfad.'scraptrap/ulist/usr.txt',"a+");
@flock ($delipstxt, LOCK_EX);
fputs($delipstxt,$dokustring);
@flock ($delipstxt, LOCK_UN);
fclose($delipstxt);
// Hier Aktion ausführen
unset($inhalt, $host);
// --- AKTION 1: Stilles Ende ---
if ($th[1] == '1') {
if ($th[3] == 'archok') {
$dokustring = "$sip|".$_SERVER['HTTP_USER_AGENT']."|".$_SERVER['QUERY_STRING']."|Aktion: Einfaches die;|".time()."|||\n";
$f = fopen($stpfad.'scraptrap/th_blacklist/'.$th[0].'.arc', "a+");
@flock($f, LOCK_EX); fputs($f, $dokustring); @flock($f, LOCK_UN); fclose($f);
}
unset($th); die;
}
// --- AKTION 2: 24h Sperre & Ende ---
if ($th[1] == '2') {
@copy($stpfad.'admin/dummy', $stpfad.'24hsperre/'.$sip.'.spr');
if ($th[3] == 'archok') {
$dokustring = "$sip|".$_SERVER['HTTP_USER_AGENT']."|".$_SERVER['QUERY_STRING']."|Aktion: die & 24h-Sperre|".time()."|||\n";
$f = fopen($stpfad.'scraptrap/th_blacklist/'.$th[0].'.arc', "a+");
@flock($f, LOCK_EX); fputs($f, $dokustring); @flock($f, LOCK_UN); fclose($f);
}
unset($th); die;
}
// --- AKTION 3: 24h Sperre & Weiterleitung ---
if ($th[1] == '3') {
@copy($stpfad.'admin/dummy', $stpfad.'24hsperre/'.$sip.'.spr');
if ($th[3] == 'archok') {
$dokustring = "$sip|".$_SERVER['HTTP_USER_AGENT']."|".$_SERVER['QUERY_STRING']."|Aktion: die, 24h-Sperre & Weiterleitung nach $th[2]|".time()."|||\n";
$f = fopen($stpfad.'scraptrap/th_blacklist/'.$th[0].'.arc', "a+");
@flock($f, LOCK_EX); fputs($f, $dokustring); @flock($f, LOCK_UN); fclose($f);
}
header('Location: ' . $th[2], true, 301); // Weiterleitung erst NACH dem Loggen
unset($th); die;
}
// --- AKTION 4: 24h Sperre & Captcha ---
if ($th[1] == '4') {
@copy($stpfad.'admin/dummy', $stpfad.'24hsperre/'.$sip.'.spr');
if ($th[3] == 'archok') {
$dokustring = "$sip|".$_SERVER['HTTP_USER_AGENT']."|".$_SERVER['QUERY_STRING']."|Aktion: die & Captcha-Anzeige|".time()."|||\n";
$f = fopen($stpfad.'scraptrap/th_blacklist/'.$th[0].'.arc', "a+");
@flock($f, LOCK_EX); fputs($f, $dokustring); @flock($f, LOCK_UN); fclose($f);
}
include $stpfad.'scraptrap/scraptrap_captchaformular_standalone.php';
unset($th); die;
}
// Hier Aktion ausführen
die;
}
$z++;
}
}
unset($sip);
unset($host);
unset($thda);
unset($inhalt);
unset($th);
unset($ci);
unset($z);
unset($nix);
//24.28.0.0/14
//24.32.0.0/11
//24.56.0.0/13
//24.72.0.0/13
//24.92.0.0/14
//47.128.0.0/10
//66.74.0.0/15
//66.108.0.0/14
//66.188.0.0/14
//69.72.0.0/14
//69.112.0.0/12
//71.0.0.0/12
//71.80.0.0/13
//71.112.0.0/12
//72.224.0.0/11
//76.176.0.0/13
//96.224.0.0/12
//98.0.0.0/12
//174.64.0.0/12
//184.0.0.0/12
//192.0.0.0/12 (Teile davon)
//198.8.80.0/21
//199.36.0.0/16
?>