WiseCleaner Think Tank

Encounter difficult computer problems?
All about maintenance and optimization of your Windows System.

Home > Think Tank > How to Block Apps from Accessing the Internet in Windows 11

How to Block Apps from Accessing the Internet in Windows 11

Nov 7, 2024

Blocking apps from accessing the internet in Windows 11 can be useful for various reasons, such as conserving bandwidth, improving privacy, or controlling how certain programs use the network. In this article, we’ll walk you through different methods for blocking apps from accessing the internet in Windows 11.

Method 1: Using Windows Defender Firewall

One of the most effective ways to block an app from accessing the internet in Windows 11 is to use the built-in Windows Firewall. The Firewall lets you create rules that prevent certain apps from sending or receiving data.

Step 1. Open Windows Defender Firewall

Press Win+ S and type Windows Defender Firewall in the search bar. Click the top result to open it.

Step 2. Access Advanced Settings

Click on the Advanced settings from the left panel.

Click on the Advanced settings

Step 3. Create a New Outbound Rule

Create a New Outbound Rule
select Program
select the executable file

Step 4. Block the Connection

Select Block the connection
Choose when the rule applies
Give the rule a name

Method 2: Using Command Prompt

If you prefer using the Command Prompt, you can also block apps by adding specific firewall rules through the netsh command. 

Step 1. Open Command Prompt as Administrator

Press Win + S and type cmd in the search box and select Run as administrator to open it.

Step 2. Create a Firewall Rule to Block the App

netsh advfirewall firewall add rule name="Block App Name" dir=out action=block program="path" enable=yes

Here’s a breakdown of the command:

For example:

netsh advfirewall firewall add rule name="Block Edge" dir=out action=block program="C:program files (x86)MicrosoftEdgeApplicationmsedge.exe" enable=yes

type command

Conclusion

By following these steps, you can control over the apps that can communicate with external servers, enhancing your privacy and security. Whether you are managing your own system or setting up a secure environment, these techniques will help you prevent unwanted connections.

10