https://stackoverflow.com/questions/...omain-of-a-url

Bilgisayarda olmadığım için tam kod veremedim ama burdaki kodlar işini görecektir