0

Is there a way for a standard C# desktop app to detect the URL that the browser is going to navigate to, and possibly prevent it from doing that? An example would be all those download managers that pop up when I click a link in the browser and prevent browser's default action from occurring.

13
  • Do you mean for example I have Firefox browser. I want to monitor all the links entered by the user in the address bar? Commented Jan 16, 2013 at 5:45
  • 1
    Is this the one you want : stackoverflow.com/questions/1420931/… Commented Jan 16, 2013 at 6:06
  • 1
    this cannot be done by C# and Browser alone since a Browser is a separate application and there's no way to invade its privacy or even control it from C# codes. What you need is a C# application that communicates with your network thus to monitor the logs from your network. This involves networking skills as you have to get all of your outgoing url request from the network. Commented Jan 16, 2013 at 6:20
  • 1
    This may help.. stackoverflow.com/questions/3579649/… Commented Jan 16, 2013 at 6:30
  • 1
    From an external application, here is a link that could help: stackoverflow.com/questions/5317642/… Otherwise, you will need to develop an addin for each browser (that talks to an external app possibly), for example in IE, that could be a BHO en.wikipedia.org/wiki/Browser_Helper_Object Commented Jan 16, 2013 at 7:28

1 Answer 1

3

you can not access to internet browsers from winform projects but you can access if you have a plug-in app. for browsers. Develop a plug-in app. and communicate with your winform app. like internet download manager app. here is expamle for IE add-ons IE add-on express for chrome Google dev guide

hopefully helps it.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks man. That's a whole lot of help. I also found out that the only way to do it is to write one plug-in for each browser.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.