-
Notifications
You must be signed in to change notification settings - Fork 34
Home
seitsu edited this page Dec 31, 2012
·
4 revisions
To parse and to validate a domain name.
At first it will parse a given string to split it by the hostname and top-level domain name. This will be done with a list from Mozilla and we also added some missing second-level domain names. Afterwards we will convert the domain name to it punycode and unicode notation. If an error occures by doing so, e.g. characters that are not allowed. It will kill these characters and set a flag to false. This flag is used for the validation.
For more info, be sure to checkout out the official documentation for DomainParser.