开发者

how to check the browser history on local system using java

I want to 开发者_如何学JAVAcheck last hour browser history on the local machine using a java program. So is there any way around to so that?

Thanks and regards, Vivek Birdi.


You're probably going to have to do a bit of checking for the individual browsers as they store the history data in different ways, and even in terms of the same browser there is going to be platform dependent code.

Firefox (perhaps the easiest browser to accomplish this task for) for instance stores the history in a sqlite3 file called places.sqlite, so by using the JDBC Sqlite driver you should be able to access it. (The format is fairly well documented and Sqlite on Java is as well).

For the others it is a matter of researching where and what format they store the history in and writing code to access it.

You're then going to have to build a table of all accesses in the last hour, because it is going to be impossible to know without probing what browser the user uses.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜