I'm getting a lot of scams on my mobile phone, and have just tried explaining to my wife how to find out who the 'owner' (network host name?) of a URL is before clicking on it. The basics are obvious - scan from the right till you find the TLD, work back to the left. But, of course, this is non-trivial, and I gave up. TLDs have proliferated to the point where they're useless, some countries have a second-level hierarchy and some don't, and the real killer is that the filename portion of the URL can contain dot characters and can (I think) look like a domain.
Is there an algorithm which can always extract an org name from a URL? For bonus points, does anyone know of a website that'll do this for you? A
whois search should do the job, of course, but the output is generally too complex for an amateur to understand.
Simple example, which I received yesterday, with no page portion:
https://nhs.uk.pcr-kit.co.uk (which is 'safe'according to Google and VirusTotal, but which is a Covid contact testing scam).