Solved

Grab url from anybrowser? Windows C#? track visited site?

Posted on 2013-01-08
3
1,269 Views
Last Modified: 2013-01-11
I am currently playing with C# and WPF aplication on Windows. My queston is is it possible to grab the url from current browser the user is using?

Example:
I am opening internet explorer and typing www.google.com, the page loads and it shows me google.

I want to track that I have visited and then store in an database.
ANother example would be in firefox, or in google chorme?. How can I do this in Windows enviroment and the inportant queston, is it possible to do this with C#?
0
Comment
Question by:chugarah
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
HaiFai earned 500 total points
ID: 38754283
Hi

If you dont know what browser is in use probably only way to make sure that you will catch url is capture ethernet packet.
There is many tools for doing that but here is few what you could try

http://sourceforge.net/projects/sharppcap/
http://www.wireshark.org/

so just capture port 80 traffic and filter urls from traffic, that should do it
0
 
LVL 1

Author Comment

by:chugarah
ID: 38758083
Hi, can I also extract the URL encrypted page like https?. Which one do you recommend for both http and https?

Thanks
0
 
LVL 1

Author Comment

by:chugarah
ID: 38767662
I used Sharpcap and it works greate in LAN enviroment. I tried using this one on my laptop and using my phone as modem and it didnt give any result.

I decided to go with 3 major browsers and apply code for getting the address. If you guys want the source code write an answer and I will post.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question