Do you want to prevent certain programs from accessing the Internet? If yes, you must know that you can block them on Windows 11. This step-by-step guide will show you how to do that.
If you want to block a program from accessing the internet, you can create a new rule at Windows 11 Firewall . This rule will then ensure that the program no longer has access to the network.
How to prevent programs on Windows from accessing the Internet
To turn off Internet access for a program in Windows Firewall, follow these steps:
1. Open Windows Firewall. Type "Windows Defender Firewall" in the search bar.
2. Select " Advanced Settings " on the left.
In the opened window, right-click Outbound Rule and then click New Rule .

Click “ Program ” and then click Next .

Here you can choose all programs or specific program which will block internet access. By clicking on the "Browse" button , you can select the desired program. Alternatively, you can enter the path to the program directly in the text field. Example: c:\Path\Program.exe %Program Files %Browser\Browser.exe

By clicking next, the following options become available:
- Allow connection
This includes both IPsec-protected and non-IPsec-protected connections.
- Allow connection if secure
This only includes connections authenticated using IPsec. The connections are secured using the settings in the IPsec properties and rules in the Connection Security Rule node.
- block connection

When is this rule applied?
- Domain
Applied when a computer is connected to the company domain.
- Private
Applies when a computer is connected to a private network (eg at home or at work).
- Public
Applies when a computer is connected to a public network.
The last step is to give your new rule a name. When you click "Finish ", your new rule will be created and activated at the same time.

Conclusion
Blocking certain programs from accessing the Internet can help increase the security of a computer system. Blocking programs can prevent malware or other malicious software from getting onto your computer.