I want to create an app to block IP Address. I read Microsoft docs about Winsock then I know about setsockopt() function. This function has an attribute level
that has an option SO_CONDITIONAL_ACCEPT
. The Description of this option is can enable incoming connections are to be accepted or rejected by the application, not by the protocol stack
(https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-setsockopt)
But I don't know how to set it to auto block
my Input that is an IP Address. Or do you know any function in Winsock that can block outbound connections please tell me. Thank all!