3 ms·
I wonder if the right approach here is for HN to just use the public suffix list [0], and then sites like SourceHut should be added to it. [0] https://publicsu
by vlmutolo 5y ago
I wonder if the right approach here is for HN to just use the public suffix list [0], and then sites like SourceHut should be added to it.
[0] https://publicsuffix.org/ https://publicsuffix.org/
- Jtsummers 5y agoLooking at that, it would work (to the extent the list is complete) for things like GitHub pages (at github.io, like foo.github.io) but it doesn't work for GitHub user pages and repositories like github.com/foo or github.com/foo/bar. If the URL included a ~ like old school user sites then it could be automatically detectable (assuming others don't randomly throw a ~ in to their paths) like our university websites back in the day with foo.edu/~bar or math.foo.edu/~bar. Of course, now you've got sites using @ (Replit) instead of ~ to indicate a similar notion (that it's a user page and not, properly, the work of the main server hosts/owners), and GitHub and others don't include any kind of sigil providing this kind of information.