Press the key combination Windows logo key + R to open the Run dialog.
Type wf.msc in the Run dialog and press Enter. This would open the Windows Firewall with Advanced Security window.
Click on the Outbound Rulesin the left side menu in the Windows Firewall window as shown,
Click on the New Rule…on the right side menu as shown,
In the New Outbound Rule Wizard, select Program in Rule Type window and click Next,
In the Program window, either manaully type the full path and file name of the program you want to block, or click on the Browse button to browse the program file. Click Nextto continue.
In the Action window, select Block the connection and click Next,
In the Profile window, select all options and click Next,
In the Name window, give a name to the new rule like Block Explorer.exe and click Finish,