Skip to content

publicsuffix.org a list of known public domain suffixes (TLD). Some example .com, .co.uk, co.at. The current data loads from https://publicsuffix.org. This library does not nees a additional cache system is very fast on different domain names.

License

louislouw/Nager.PublicSuffix

 
 

Repository files navigation

Nager.PublicSuffix

#####nuget The package is available on nuget https://www.nuget.org/packages/Nager.PublicSuffix

install-package Nager.PublicSuffix

#####Example

	var domainParser = new DomainParser();
	var data = await domainParser.LoadDataAsync();
	var tldRules = domainParser.ParseRules(data);
	domainParser.AddRules(tldRules);

	var domainName = domainParser.Get("sub.test.co.uk");

About

publicsuffix.org a list of known public domain suffixes (TLD). Some example .com, .co.uk, co.at. The current data loads from https://publicsuffix.org. This library does not nees a additional cache system is very fast on different domain names.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%