• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1387
  • Last Modified:

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

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?

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#?
  • 2
1 Solution

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


so just capture port 80 traffic and filter urls from traffic, that should do it
chugarahAuthor Commented:
Hi, can I also extract the URL encrypted page like https?. Which one do you recommend for both http and https?

chugarahAuthor Commented:
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now