How to Block a Program From Accessing the Internet in Windows 10

Introduction

 
Windows Defender Firewall is a shielding feature in the Windows Family. Its Windows Defender Firewall with Advanced Security tool enables the users to block a program or port to access the internet on different profile networks.
 
"Windows Defender Firewall with Advanced Security" Tool is used to create authenticate communication between systems. It is also used to view and create firewall rules.
 
The user has to face various situations where he needs to block a certain program from connecting to the internet. By using the "Windows Defender Firewall with Advanced Security" tool, the user can allow or block connections to specified programs or ports.
 
Note 
Before moving to the steps, we should know what is the basic difference between Inbound and Outbound Rules.
  • Inbound means the connection initiates from outside of your computer and the traffic that passes from the network to your local computer are filtered by this rule.
  • Outbound means, the connection is initiated by the user itself and the traffic that passes from the local computer to the destination is filtered based on the condition specified in the rule.
This tutorial will show you various steps on, how to block a program from connecting to the internet in Windows 10.
 
Step 1
 
From the Search bar, type the "Windows Defender Firewall" and press enter to open it.
 
Step 2
 
"Windows Defender Firewall" window will appear on the screen and then click on the "Advanced settings" option.
 
control panel
 
Step 3
 
Now, the "Windows Defender Firewall and Advanced Security" window will appear on the screen and click on the "Outbound Rules".
 
click on the outbound
 
Step 4
 
On the right-hand side, under the "Actions" section, click on the "New Rule" option to create a new rule.
 
new rule
 
Step 5
 
In the "New Outbound Rule Wizard" window, select the "Program" rule type option and click on the "Next" button.
 
program
 
Step 6
  
To block a specific program, select the "This program path:" option and specify its full program path by clicking on the "Browse" button and choose the program (.exe) file that you want to block. Click on the "Next" button to proceed.
 
action
 
Step 7
 
On the "Action" screen, select the "Block the connection" option and click on the "Next" button to proceed.
 
action
 
Step 8
 
On the "Profile" screen, the user has various profile options on which the rule will apply. Now, select the desired profiles as per your requirements and click on the "Next" button.
 
profile
 
Step 9
 
Give any name for this rule that you can easily recognize it later and click on the "Finish" button.
 
name
 

Testing the Rule

 
Now, it's a time to test our newly created Rule that we have created for blocking the program from accessing the Internet. By testing our rule, we have seen how to block a program from accessing the internet.
 
testing
 
  

Conclusion

 
By following the above steps, you can block a program from connecting to the Internet in Windows 10.
 
I hope you enjoyed this article. Follow C# Corner to learn more new and amazing things about Windows 10.
 
Thanks for reading!