I'm writing a web-based game that involves clicking links on various sites on the internet. I know it sounds strange but the basic premise is that you start on my page where you click a link to some page on another site. You continue to follow links until you get to the page you are trying to reach. Think WikipediaGame.org. The difference being that I don't have control over the actual pages with the links.
What I need to be able to do is track all the links that they clicked, and when they get to the final page, I want to send them back to my site (or something along those lines).
What I was thinking was that perhaps I could somehow intercept the page requests and inject some javscript to track which links they clicked. Is this possible? Has anyone done anything like this? Obviosuly this could pose a security risk. Do I have any other options? I want to avoid making the user collect a list of all the links and then post them into a textbox on my site.