Module domain_utils

Source

Functions§

determine_parent
Determines the parent domain if this is a subdomain.
extract_root_domain
Extracts the root domain from a full host (e.g., “admin.example.com” → “example.com”).
is_localhost
Quick check whether this request originates from localhost.
split_host
Returns (root_domain, subdomain) where subdomain is None if host == root.