Is it difficult in C# to block and unblock the internet connection on a pc?
If that's not too difficult, is it also possible to raise an event when an application wants to access the internet?
(Yes I want to built a basic firewall :p )
Cheers
PB
Printable View
Is it difficult in C# to block and unblock the internet connection on a pc?
If that's not too difficult, is it also possible to raise an event when an application wants to access the internet?
(Yes I want to built a basic firewall :p )
Cheers
PB
Bump
From my understanding of how firewalls work (and I admit, I know very little) I don't think you could easily do it using C# or VB.NET. I think you would have to build your own device driver that sits on top of the network device driver on the machine.
You can read up on device drivers here, but it is some very advanced programming:
http://www.microsoft.com/whdc/devtools/ddk/default.mspx
Here is an article on developing your own firewall:
http://www.codeproject.com/internet/drvfltip.asp