Function is_private_or_local_host
pub fn is_private_or_local_host(host: &str) -> boolExpand description
Check whether host is a private, loopback, link-local, or otherwise
non-globally-routable address (SSRF guard).
Handles both IPv4 and IPv6, as well as localhost and .local domains.
True when host is loopback, private, link-local, a documentation/
benchmark range, or one of the localhost / *.local name forms. Accepts
bracketed IPv6 ([::1]) and is case-insensitive.