in reply to redirection loop

just keep track of the pages visited and if there is a self-link from the current page,don't
follow it(you can use a hash to keep track of pages visited)