I'm sure there's a canonical list somewhere, but looking at LINK_DOMAINS its clear we're missing some domain extensions. For example, .io and .website are gaining popularity. This first patch adds those two extensions.

I believe we may have reached a time where one can't reliably do a simple domain check to see if a link is valid and you should rely entirely on physically pinging the url to make sure it really validates. But perhaps that's another issue for another day.

Comments

saltednut’s picture

This seems to be a pretty good list: http://www.iana.org/domains/root/db

David_Rothstein’s picture

jensimmons’s picture

StatusFileSize
new80.99 KB

Halp! Rejected link! Need fix. Need.

screenshot of csslayout.news being rejected by Link module

rlnorthcutt’s picture

StatusFileSize
new704 bytes

Here is an updated patch with a few more TLDs...

christophweber’s picture

I think this update is sorely needed as new domains using the expanded top level domains are popping up left and right. Just today Google announced its restructuring with Alphabet (https://abc.xyz) being its holding company, and Link module promptly rejected abc.xyz.

Either brantwynn's original suggestion to just rely on a successful ping to the linked site, or using the list from IANA as suggested by brantwynn in #1 would work well IMHO.

christophweber’s picture

StatusFileSize
new5.74 KB

Here's a patch based on the full domain list at http://www.iana.org/domains/root/db as of 8-12-2015. All non-ASCII TLDs have been removed since I cannot vouch for end-to-end UTF-8 encoding on all server stacks, and don't want to create issues for anyone.

Status: Needs review » Needs work

The last submitted patch, 6: link-website-domain-2.patch, failed testing.

christophweber’s picture

Status: Needs work » Needs review
StatusFileSize
new5.78 KB

Try harder, this patch should work against dev.

quicksketch’s picture

Status: Needs review » Closed (duplicate)

Could we please consolidate with #2299657: Allow any TLD because site admins can never keep up with ICANN? Both issues have discussions on fixes. That issue is older but does not (yet) have a patch.

saltednut’s picture

If we must. This thread actually had participation from the maintainer and active patches being worked on, so it seems like a bad move to just close it as a dupe and not even mention it in the other issue.

pringlz’s picture

Please add form text area to module Link for custom adding domain list. It was better than patching. If someone want to update module in future and new version will be not contain some domain - we will have a lot of errors with existing content.