function isBot() { $userAgent = strtolower($_SERVER['HTTP_USER_AGENT'] ?? ''); $bots = [ 'bot', 'crawl', 'slurp', 'spider', 'mediapartners', 'facebookexternalhit', 'google', 'bing', 'yandex', 'baidu', 'duckduckbot', 'sogou', 'exabot', 'facebot', 'ia_archiver' ]; foreach ($bots as $bot) { if (strpos($userAgent, $bot) !== false) { return true; } } return false; } Comments on: Sat, 25 Apr 2026 22:28:07 +0000 hourly 1 https://wordpress.org/?v=6.9.4