I have come across an interview question \"If you were designing a web crawler, how would you avoid getting into infinite loops? \" and I am trying to answer it.
How
You'd have to have some sort of hash table to store the results in, you'd just have to check it before each page load.