Nager.PublicSuffix icon indicating copy to clipboard operation
Nager.PublicSuffix copied to clipboard

.NET public suffix domain parser

Results 10 Nager.PublicSuffix issues
Sort by recently updated
recently updated
newest added

I actually discovered this bug when using [TldExtract](https://github.com/migueldeicaza/TldExtract) and logged [an issue ](https://github.com/migueldeicaza/TldExtract/issues/4)in that repo. I'm posting the problem here as well because this library is (seemingly) actively maintained. The...

I'd love something like `bool IsTld(string host)` that tells me whether something is a TLD or not. IsValidDomain doesn't quite work for all scenarios.

enhancement

Hi, When try to parse the following URL: ```C# string url = "http://instahuddle.en.aptoide.com"; var domainParser = new DomainParser(new WebTldRuleProvider()); var domainName = domainParser.Get(url); var domain = domainName.RegistrableDomain; ``` The following...

question

When I try to test a TLD (like "co.uk"), I get an exception. That exception doesn't show any signs of the cause, other than the message string "Domain is a...

enhancement
question

IsValidDomain throws an exception if the domain string provided is a TLD e.g. "mil.lv" . It should just return false, instead of throwing an exception because input can't always be...

Just tried to update the package to 3.0 but VS is complaining about .net 4.8.1 compatibility? 2.4 is working fine > Could not install package 'Nager.PublicSuffix 3.0.0'. You are trying...

In order to make use of DomainParser the rule provider it consumes must be initialised by calling the Build() method or else an exception is thrown (DomainDataStructure is not available)....

The domains in question: "streaklinks.com" "webflow.io" i have a list > 100k domains, they all work fine except the above! not sure why these domains could not be parsed. ![streaklinks](https://github.com/nager/Nager.PublicSuffix/assets/10267198/c4d52ffd-61c6-41cb-9541-afa51fbf42dd)

After upgrading the package to v3, `WebTldRuleProvider` is no longer recognized. It seems there is no equivalent provider we can use as a replacement. `CachedHttpRuleProvider` requires a number of arguments....

**Description** This PR extends the Nager.PublicSuffix to include a MemoryCache option. Due to Azure restrictions that prevent using LocalFileCache, I implemented a MemoryCache to ensure efficient caching within the application....