In addition to preventing incest, the website also lets Icelanders see if they’re related to any of the nation’s stars.

A website in Iceland aims to help residents of the tiny island nation from getting too close for comfort.

With a population of just 300,000, Icelanders face a real danger of accidentally dating a cousin.

Enter Íslendingabók, or the Book of Icelanders, an online resource that tracks 1,200 years worth of genealogical data on the country's inhabitants, according to the website.

All Icelanders have to do to prevent incest is type in their name and the name of a potential love interest -- that is, provided they have an "Icelandic ID number," since the database is restricted to citizens and legal residents.

An added bonus? Íslendingabók can also tell Icelanders if thye are related to celebrities. In an interview with Global Post, Alli Thorgrimsson, 31, said he used the database to discover that he's distantly related to singer Bjork. He also breathed a sigh of relief when he learned that he and his ex-wife were distantly enough related (seventh cousins) to be clear of incest concerns.

The website, which was developed in collaboration between a genetics research company and a software entrepreneur, has been active since 1997.