aspose file tools*
The moose likes Java in General and the fly likes Getting browser history from Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Getting browser history from Java " Watch "Getting browser history from Java " New topic
Author

Getting browser history from Java

ritz Mohamed
Greenhorn

Joined: May 20, 2011
Posts: 10
hi all,
i just want to know wether can we get the browsing history from java.(from browsers include IE,Mozilla,opera).i cant able to get the history from temp folder.
thanks in advance.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

I don't think an Applet can do this directly. You should be able to call JavaScript to do it though. Any reason you want to do this from an Applet?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18563
    
    8

I was under the impression that browsers had restricted the ability of Javascript to access browsing history. The idea being that the Javascript on this page has no business knowing that I came to this page from... well, it's none of your business.
ritz Mohamed
Greenhorn

Joined: May 20, 2011
Posts: 10
am creating a employee monitor tool in that i want to get all url's which was visted by clients.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61187
    
  66

Why don't you just sit at their desk and look at the browser history? After all, any "tool" you create using JavaScript or Java needs to be executed in their browser or on their system, so if you're going to physically gain access to their system, just look at the history.

Aren't there already network monitoring tools that you could use? Why re-invent the wheel?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
ritz Mohamed
Greenhorn

Joined: May 20, 2011
Posts: 10
its a part of my final year project so only i need help on this sir
ritz Mohamed
Greenhorn

Joined: May 20, 2011
Posts: 10
i want to achieve the following
Logs Browser activity and sends the Log to Server when it’s requested.
........................
people who really want to help me regarding this please post a reply.
if anybody want to give advices regarding this please send to my mail id.
i searched a lot regarding this.and i found code in C++.but i need to know wether this can be done in java
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18563
    
    8

That's the wrong implementation for an employee monitoring tool. A better implementation would be to force the browser to connect via a proxy server, and have the proxy server log the URLs. Fishing through the browser history after the fact also has the flaw that the user can clear the history at any time, or use the new "private browsing" feature which is available in newer browsers which doesn't store URLs in a history file.
ritz Mohamed
Greenhorn

Joined: May 20, 2011
Posts: 10
thanks for your reply sir, ill try to know about proxys
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting browser history from Java