2021-08-12 19:03:24 +00:00
|
|
|
// Copyright (c) 2015, Daniel Martí <mvdan@mvdan.cc>
|
|
|
|
// See LICENSE for licensing information
|
|
|
|
|
|
|
|
package xurls
|
|
|
|
|
|
|
|
// PseudoTLDs is a sorted list of some widely used unofficial TLDs.
|
|
|
|
//
|
|
|
|
// Sources:
|
2023-04-19 11:44:20 +00:00
|
|
|
// - https://en.wikipedia.org/wiki/Pseudo-top-level_domain
|
|
|
|
// - https://en.wikipedia.org/wiki/Category:Pseudo-top-level_domains
|
|
|
|
// - https://tools.ietf.org/html/draft-grothoff-iesg-special-use-p2p-names-00
|
|
|
|
// - https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xhtml
|
2021-08-12 19:03:24 +00:00
|
|
|
var PseudoTLDs = []string{
|
|
|
|
`bit`, // Namecoin
|
|
|
|
`example`, // Example domain
|
|
|
|
`exit`, // Tor exit node
|
|
|
|
`gnu`, // GNS by public key
|
|
|
|
`i2p`, // I2P network
|
|
|
|
`invalid`, // Invalid domain
|
|
|
|
`local`, // Local network
|
|
|
|
`localhost`, // Local network
|
|
|
|
`test`, // Test domain
|
|
|
|
`zkey`, // GNS domain name
|
|
|
|
}
|