add Red detection to parse_url