Skip to main content

is_transparent_resolver

Function is_transparent_resolver 

Source
pub fn is_transparent_resolver(host: &str) -> bool
Expand description

Whether host is a DOI resolver rather than a content host (#533).

Exact match against TRANSPARENT_RESOLVER_HOSTS, deliberately without wildcard support: evil-doi.org, doi.org.evil.test and www.doi.org are all NOT resolvers, and the first two are what an attacker would register.