Accurately separates a URL’s subdomain, domain, and public suffix, using the Public Suffix List (PSL).
The Public Suffix List
Domain name parser for Ruby based on the Public Suffix List.
Splits a hostname into subdomains, domain and (effective) top-level domains.