The libtld is used to extract the TLD from any URI from anywhere in the world. The library recognizes all TLDs, whatever the number of levels the TLD includes (i.e. .com has one, .au has up to 4 such as .schools.nsw.edu.au) this library will be capable of extracting it.
These details are provided for information only. No information here is legal advice and should not be used as such.