Regarding what I ask, "how to make a software firewall for Windows", but something is not so difficult. I am surprised that I can find so little when searching for this, just a random mention of the hooks. Therefore, it would be very helpful if someone could point me in the right direction.
I expect to do this with C (although if there is another language that you think will work better, I'm all ears). I want the application that monitors network traffic to be able to extract the IP address (source for incoming, target for outgoing) and can block the specified network activity.
This is similar to what it would be much easier to do in the kernel, but I do not want it to be there, somewhere there, and generally do not have access to this on Windows. I'm not worried about efficiency, and I'm not going to create a personal firewall. This is just an experiment on IP addresses.
Any pointers?
Note. It is also important to block network activity of the network, and not just monitor it.
source share