Block software in Firewall for both outgoing and incoming connections

Windows Firewall allows you to block all outgoing connections to restrict applications from connecting to the internet. Here’s how.

Windows comes with a default firewall application that gives you granular control over the internet access and also allows you to configure all the incoming and outgoing connections. By default, the Windows firewall is configured to allow all outgoing connections unless they are blacklisted and block all incoming connections unless they are whitelisted.

Most Windows programs have almost unrestricted access to outgoing connections. This means that the applications can phone home and perform other activities without any restrictions.

If you don’t like this behavior then you can use the Windows Firewall options to block all outgoing connections. Blocking oubound connections is helpful when you want granular control over which applications can send data over the internet.

The method shown below is verified to work with Windows 10, 8, & 7. Before making any changes, I strongly recommend you to backup Windows Firewall settings.

These are the steps you should follow to block outgoing connections in Windows Firewall.

  1. Open the Start menu.
  2. Search for “Windows Defender Firewall” and open it.
    Block software in Firewall for both outgoing and incoming connections
  3. Click on the “Advanced Settings” link in the Firewall application.
    Block software in Firewall for both outgoing and incoming connections
  4. Here, select the “Windows Defender Firewall with Advanced Security on Local Computer” option on the left panel.
  5. Click on the “Windows Defender Firewall Properties” link in the middle panel.
    Block software in Firewall for both outgoing and incoming connections
  6. In the Firewall properties window, go to the profile tab of your choice.
    • Domain profile tab: If the system is joined in a domain.
    • Private profile tab: If the system is connected to a private network (like home or office network).
    • Public profile tab: If the system is connected to a public network (like a coffee shop WiFi)

    In my case, I’m selecting the Private profile tab because I’m connected to a private network. For a vast majority of users, this is the option to select.

  7. Here, select “Block” from the drop-down menu next to “Outbound connections“.
    Block software in Firewall for both outgoing and incoming connections
  8. Click on the “Apply” and “Ok” buttons to save changes.
  9. Close Windows Firewall application.

The changes are instant. From now on, all outbound connections are blocked and applications cannot send any data over the network.

Block software in Firewall for both outgoing and incoming connections
Block software in Firewall for both outgoing and incoming connections

Whitelist Applications to Allow Outbound Connections

To allow outgoing connections for specific applications, you need to manually whitelist them. Whitelisted application takes priority over the general block rule for outbound connections. For example, maybe you want the Chrome browser to work even when you blocked the outbound connections.

Follow these steps to whitelist applications for outbound connections.

  1. Open Windows Firewall.
  2. Click on the “Advanced Settings” link.
    Block software in Firewall for both outgoing and incoming connections
  3. Select “Outbound rules” on the left panel.
  4. Click on the “New rule” option in the right panel.
    Block software in Firewall for both outgoing and incoming connections
  5. Select “Program” and click “Next“.
    Block software in Firewall for both outgoing and incoming connections
  6. Select “This program path” and click “Browse“.
    Block software in Firewall for both outgoing and incoming connections
  7. Find the application’s exe file, select it, and click on the “Open” button.
    Block software in Firewall for both outgoing and incoming connections
  8. Click “Next“.
    Block software in Firewall for both outgoing and incoming connections
  9. Select “Allow this connection” and click “Next“.
    Block software in Firewall for both outgoing and incoming connections
  10. Select Domain, Private, and Public checkboxes and click “Next“.
    Block software in Firewall for both outgoing and incoming connections
  11. Name the rule and click “Finish“.
    Block software in Firewall for both outgoing and incoming connections

As soon as you click the Finish button, the outbound rule will be created and applied to the firewall. From now, the whitelisted application should be able to send data over the network even if the outbound connections are blocked.

FIXED: Some Applications can Still Connect to the Internet After Blocking Outgoing Connections

Even after block all outbound connections, some applications can still send data over the network. For example, most built-in Windows applications and services can send data over the network. This is because those applications are whitelisted by the system.

If you don’t want those applications accessing the outgoing connections, you have to manually disable the outbound rule for those applications in the Firewall settings. Let me show you how.

  1. Open the Windows Firewall application.
  2. On the left panel, click on the “Advanced Settings” link.
    Block software in Firewall for both outgoing and incoming connections
  3. Here, select the “Outbound Rules” option on the left panel.
  4. In the middle panel, find the rule related to the application you want to block.
  5. For example, I want to block the Windows 10 Email app. So, I selected it.
    Block software in Firewall for both outgoing and incoming connections
  6. Right-click on the rule and select the “Disable Rule” option.
    Block software in Firewall for both outgoing and incoming connections

Block software in Firewall for both outgoing and incoming connections

That is it. The changes are instant. For demonstration purposes, I also blocked the outbound rule for the legacy Edge browser. As you can see from the image below, it cannot connect to the internet due to the restriction of the outgoing rule. Do this to all the applications you don’t want connecting to the internet.

I hope that helps. If you are stuck or need some help, comment below and I will try to help as much as possible.

How can I block an software in firewall?

Click Allow a program or feature through Windows Firewall (or, if you're using Windows 10, click Allow an app or feature through Windows Firewall). On the next screen, click Change settings, then tick or untick the box next to an item to allow or block it.

Does firewall block incoming traffic?

Firewalls are typically designed to prevent inbound traffic from entering a network, but they can also prevent outside connections from receiving outbound traffic.