Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to add a top private domain mode as seen in google's guava. #25

Open
t0xodile opened this issue Oct 31, 2024 · 0 comments
Open

Comments

@t0xodile
Copy link

https://guava.dev/releases/32.1.1-jre/api/docs/com/google/common/net/InternetDomainName.html#topPrivateDomain()

Would be very helpful. "Returns the portion of this domain name that is one level beneath the public suffix. For example, for x.adwords.google.co.uk it returns google.co.uk, since co.uk is a public suffix. Similarly, for myblog.blogspot.com it returns the same domain, myblog.blogspot.com, since blogspot.com is a public suffix."

Public Suffixes. Apex works in some cases but not all.

Basically the mode should check the above list, and then pull out the domain right before that. A good example is
something.somethingelse.azurewebsites.net.

Apex mode would output azurewebsites.net.
Top private domain mode, would output somethingelse.azurewebsites.net.

Hope that makes sense.
\Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant