Public Suffix for Ruby
Find the registrable domain in a hostname using public suffix rules.
weppos · Data tools
GitHub projectOpen source Open on GitHubHow to try it
With Ruby 3.2 available, install public_suffix at version 7.0.5. Look up the registrable domain of orchard.example.co.uk.
What we tested
7.0.5. Look up the registrable domain of orchard.example.co.uk. The parsed domain separated example.co.uk and co.uk.