Click here to Skip to main content
15,888,293 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
How can we capture the event of Windows Firewall that is raised whenever a new application which is not listed in firewall rules tries to access internet ?

How can we access that info using my C# application ?

What i want to do is to show a form allowing user to allow/deny a connection whenever a program tries to connect to the Internet..
I would like to know whether we can use the windows firewall for the same...
Posted

 
Share this answer
 
Comments
Manfred Rudolf Bihy 24-Mar-11 5:28am    
More or less what I found! Take 5+
Micha3ldg 24-Mar-11 5:37am    
thanks Manfred
sinoop_joy 24-Mar-11 10:35am    
Thanks for the reply..

Bt do you know whether we can capture a event of windows application using C# ?

Any way using Event manager or anything else ?
A good starting point for your job could be following post on msdn blog :

http://blogs.msdn.com/b/securitytools/archive/2009/09/14/automating-windows-firewall-settings-with-c-part-2.aspx[^]
 
Share this answer
 
Comments
sinoop_joy 24-Mar-11 10:32am    
I have started the project. And done adding rules to list using my program..

Bt I would like to add a interface which will allow user to save a rule temporarily or permanently. That too using a form which will be popped up when a application program not listed in the rules try to access the internet.. (Something similar to NOD 32 firewall or COMODO firewall interface..)

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