Click here to Skip to main content
13,202,873 members (57,383 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I really need help finding a code that can generate a web history log from all browsers on a computer and just display the links. I have tried a UrlHistoryWrapper and i guess my coding was not sufficient, i dont have enough to complete the code. Any ideas would be greatly appreciated.
Posted 26-Dec-12 9:37am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1


This is a more difficult task that you may have realized. In order to get the browsing history of any browser, you will need something like a system proxy. If you're looking for a good enough solution, consider using the Fiddler Core API[^]. Fiddler is a Microsoft API that creates a web proxy that will trap all web browsing traffic.

Because its a simple web proxy, if you're users are using a tool such as Ultra Surf[^], they will be able to get around/bypass the Fiddler proxy. There are other solutions that get much deeper into the core of Windows, but I'll leave that to Smarter People[^]!

Good luck, I didn't provide any code, but I sure hope you feel I sent you in the right direction.

snorkie 27-Dec-12 9:17am
Its worth mentioning that the solution I have suggested covers things like "private browsing" mode.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

If I were you I would just look into the registry files...
I just came up with this within a couple minutes, you could experiment more if you wanted...
using Microsoft.Win32;

static bool HasBrowsedTo(string url)
   url = url.Replace("http://www.", "");
   object obj = Registry.GetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\DOMStorage\" + url, string.Empty, null);
   return obj != null;

Just make sure your URI doesn't have a "/" at the end.
bool var = HasBrowsedTo("");
But you could fix that.
snorkie 27-Dec-12 9:16am
This doesn't take care of other browsers. It is simple, but only for IE, and it doesn't cover "private browsing" mode.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171020.1 | Last Updated 26 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100