pub fn validate_url(url_str: &str) -> Result<Url, SecurityError>
Validate a URL: must be http/https, must not resolve to private/localhost IPs.
Returns the parsed Url on success.
Url