Added new API calls

- ndpi_load_domain_suffixes()
- ndpi_get_host_domain_suffix()

whose goal is to find the domain name of a hostname. Example:

www.bbc.co.uk   -> co.uk
mail.apple.com  -> com
This commit is contained in:
Luca
2024-01-15 19:03:46 +01:00
parent 61a18623e7
commit 162c38f18f
9 changed files with 15639 additions and 40 deletions
+10 -1
View File
@@ -8,4 +8,13 @@ File Name Format
----------------
The file name format is <category id>_<string>.list
The category id list can be found in src/include/ndpi_typedefs.h
The category id list can be found in src/include/ndpi_typedefs.h
Domain Suffix List
------------------
public_suffix_list.dat can be downloaded from
https://publicsuffix.org/list/public_suffix_list.dat and
it contains the list of domain suffixes
File diff suppressed because it is too large Load Diff