Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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...

What I have tried:

This question is a copy of the question from the link below, but that is from over 10 years ago and all links in the answers are not working, so I am asking the question again

Catch Windows Firewall Event[^]
Posted
Updated 27-Jul-21 6:31am
v2

Quote:
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 hate to tell you, but Windows already does this!
 
Share this answer
 
 
Share this answer
 
Comments
Ṉobody 27-Jul-21 8:39am    
This is not related to this question
Richard MacCutchan 27-Jul-21 8:54am    
And your question could be answered by doing a little research: Using Windows Firewall with Advanced Security | Microsoft Docs[^].

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