I came up with this issue because I want to block my photoshop to connect to network, it will always check my license and says this product is limited, which is very annoying… So I decided to block it from internet.
Find Windows Defender Firewall. Click Advanced settings.
Choose Outbound rules and then click New Rule..
Choose program
Input program path. Find the exe file of your program that you want to block
Choose Block the connection
Input a name and description for this rule
Then we check the rules, we can found the one we just created.