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.
- Do you mean for example I have Firefox browser. I want to monitor all the links entered by the user in the address bar?Jobert Enamno– Jobert Enamno2013-01-16 05:45:46 +00:00Commented Jan 16, 2013 at 5:45
- 1Is this the one you want : stackoverflow.com/questions/1420931/…Srinivas– Srinivas2013-01-16 06:06:24 +00:00Commented Jan 16, 2013 at 6:06
- 1this 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.Jobert Enamno– Jobert Enamno2013-01-16 06:20:16 +00:00Commented Jan 16, 2013 at 6:20
- 1This may help.. stackoverflow.com/questions/3579649/…C-va– C-va2013-01-16 06:30:15 +00:00Commented Jan 16, 2013 at 6:30
- 1From 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_ObjectSimon Mourier– Simon Mourier2013-01-16 07:28:07 +00:00Commented Jan 16, 2013 at 7:28
| Show 8 more comments
1 Answer
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.
1 Comment
dotNET
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.