Hello.

The idea is as follows: there is an extension of Chrome, it sends all the visited URLs to the server, each user has his own id. You can, of course, use Browser History, but this approach is not flexible. How can this be done? Interested in a collegial solution, as a general concept, and technology for implementation. Java itself and C ++ developer, I’m just entering the WEB, so maybe the question is stupid). But please treat with understanding.

Thank.

PS This is not a surveillance tool, it is necessary for research.

    2 answers 2

    You can, of course, use Browser History, but this approach is not flexible.

    It is quite flexible. Chrome provides a special API for working with browsing history - this is chrome.history . There is also a link to an example of working with API.

    You can create an extension that will always work when Chrome is running, and periodically (say, once a day) at a certain time to retrieve the history of the views that have passed since the last activation of the extension, analyze them and send data to the server.

    • A normal solution, if this option does not suit you, then make a local proxy that will do this. - jmu

    As an option - again, an extension for chrome that will send the current URL and user id to the server each time the page loads (id can be stored in localStorage ). On the server, analyze the URL and write it to the database linking to the user with the specified id.