I know the .dev
top-level domain requires all sites to support only encrypted HTTPS connections, disallowing any HTTP connections.
Are there other such TLDs?
I know the .dev
top-level domain requires all sites to support only encrypted HTTPS connections, disallowing any HTTP connections.
Are there other such TLDs?
A direct answer to this would eventually become outdated if more top-level domains start enforcing HTTPS using HTTP Strict Transport Security (HSTS, RFC 6797). Technically this is an HSTS policy of a TLD submitted to the preloading list. It started with Google's new TLDs,
and there has even been preliminary thoughts on the possibility of protecting the entire
.gov
in the future:To know the current situation, one must consult the Chromium HSTS Preloaded list.
The preloaded list is also available on Chromium's GitHub mirror; especially the raw version is best for
curl
orwget
. The list is a non-standard JSON with comment lines. It is possible to analyse it withjq
after removing the comments with e.g.sed
.Here, the
jq
gives all domain names on the preloaded list and thegrep
reduces it into TLDs:To search for public suffixes instead of TLDs:
This was generated using the procedure in Esa Jokinen's answer, but it seemed like it might be useful to have a literal list, even if it does need to be updated periodically.
HSTS Preloaded TLDs
HSTS Preloaded Public Suffixes
(this portion of the answer is likely to go out of date faster)