Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

These change _very_ often.

On one library I work on, we ended up writing a bot to fetch the list for us and open a pr in order to maintain it. I suspect anyone having to validate TLDs faces a similar problem.



I assume you’re using Mozilla’s public suffix list? https://publicsuffix.org/

We have something similar that keeps it updated on a regular basis as well. We used to wait until someone complained, but it changes so often it’s the only reasonable way to deal with it.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: