Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 10:37am
Sabone314
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Sabone309,
 
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.
 
Hogan
  Permalink  
Comments
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
good
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("http://www.codeproject.com");
But you could fix that.
  Permalink  
v2
Comments
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 6,803
1 Sergey Alexandrovich Kryukov 6,377
2 DamithSL 5,421
3 Manas Bhardwaj 4,841
4 Maciej Los 4,330


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 26 Dec 2012
Copyright © CodeProject, 1999-2014
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