diff options
author | corvid <devnull@localhost> | 2014-10-22 01:29:46 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2014-10-22 01:29:46 +0000 |
commit | d417ed0233c7c152b4b884c40aba50e8daf15a17 (patch) | |
tree | 480efdd36152281ad32192fc2e99bee75cd9ff32 /src/url.c | |
parent | f089e0d592b5514443ea743e9fb7fdd535aa1ff2 (diff) |
trim the publicsuffix TLDs yet again
in January 2010, there were 42 entries. Now there are 22, and nearly all of
them are rather...marginal.
Diffstat (limited to 'src/url.c')
-rw-r--r-- | src/url.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -688,20 +688,17 @@ static uint_t Url_host_public_internal_dots(const char *host) if (tld_len > 0) { /* These TLDs were chosen by examining the current publicsuffix list - * in February 2014 and picking out those where it was simplest for + * in October 2014 and picking out those where it was simplest for * them to describe the situation by beginning with a "*.[tld]" rule * or every rule was "[something].[tld]". * * TODO: Consider the old publicsuffix code again. This TLD list has * shrunk and shrunk over the years, and has become a poorer and - * poorer approximation of administrative boundaries -- and, as of - * mid-2014, even NZ and UK are allowing domains to be registered - * at the second level, which doesn't leave much. + * poorer approximation of administrative boundaries. */ - const char *const tlds[] = {"bd","bn","ck","cy","er","et","fj","fk", + const char *const tlds[] = {"bd","bn","ck","cy","er","fj","fk", "gu","il","jm","ke","kh","kw","mm","mz", - "ni","np","nz","pg","tr","uk","ye","za", - "zm","zw"}; + "ni","np","pg","ye","za","zm","zw"}; uint_t i, tld_num = sizeof(tlds) / sizeof(tlds[0]); for (i = 0; i < tld_num; i++) { |