Click here to Skip to main content
11,801,910 members (56,924 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# VisualStudio2010
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 at 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 at 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
0 OriginalGriff 445
1 KrunalRohit 301
2 F-ES Sitecore 215
3 CHill60 185
4 Afzaal Ahmad Zeeshan 180
0 OriginalGriff 2,715
1 Maciej Los 1,900
2 KrunalRohit 1,797
3 CPallini 1,550
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 26 Dec 2012
Copyright © CodeProject, 1999-2015
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