$laurl = $_SERVER['REQUEST_URI']; $pattern = '/select/i'; if (preg_match($pattern, $laurl) == true) { exit(); } Untitled Document