Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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
 
Share this answer
 
Comments
snorkie 27-Dec-12 9:17am    
Its worth mentioning that the solution I have suggested covers things like "private browsing" mode.
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...
C#
using Microsoft.Win32;

C#
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.
 
Share this answer
 
v2
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900