Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I would like to create an application that will block a custom list of urls for example those windows that open and display ads. I would like it to see which internet connections are being used that is all I would need to finish the application. I would like this to work on all browsers how ever that is not 100% needed.

Could anyone help me get started? I have googled around and found things close to what I would like. But I would like this to search all connections not just the browsers current url if possible. I would like to write this code in vb.net I understand I could use a timer to continue checking network connections, but what code would I need?
Posted

1 solution

You'd be writing a proxy server. The proxy can then filter out URL's without having to know anything at all about the browsers being used nor anything at all about any "open connections". The browsers would have to go through your proxy server to get content from the Internet.


Going the "open connections" route is pretty stupid because during a HTTP request, the connection is opened, request transmitted, and then response received and connection closed. For most requests, this happened pretty quick and you're not going to be able to do anything at all with the "open connection" because it's already too late.
 
Share this answer
 
Comments
OriginalGriff 10-Aug-14 11:07am    
:thumbsup:
Jacob Antivirus 11-Aug-14 13:09pm    
So can you write a proxy server in vb.net or c#?
Dave Kreskowiak 11-Aug-14 19:37pm    
Yes you can.

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