Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- publicSuffix :: String -> String
- registeredDomain :: String -> Maybe String
Documentation
publicSuffix :: String -> String Source #
Return the public suffix of the given domain name (a dot-delimited unicode string). The public suffix is the part of a domain which should be protected.
Notes:
- The domain MUST NOT start with a dot. Normalize the domain before passing it to functions in this module.
- The domain MUST NOT be in punycode encoding. The matching of domain labels is done on the original encoding, as specified in the upstream publicsuffix list.
In particular that means applications SHOULD reject:
- HTTP cookies which try to set domain to a public suffix.
- X509 wildcard certificates which try to match all subdomains of a public suffix.