Blog

How to Block or Allow Internet Access for One Program: Windows Firewall Allowed Apps and Outbound Rules (Windows 10/11)

Line art of a person at a desk with a monitor; one line passes through a gap in a brick wall to a globe, another stops at a red brick

Windows Firewall is built in; there is nothing to install. By default it blocks incoming connections (inbound) and allows connections going out from your PC (outbound). Once you know this difference, it is easy to see where to look when updates fail and how to cut off a single program.

1. View the list of allowed apps

  • Open Windows Security → Firewall & network protection → Allow an app through firewall.
  • Click Change settings, find the program and tick Private (home, work) and/or Public (cafés, airports) as needed.
  • If it is not listed, use Allow another app → Browse and pick the program's .exe file.
  • This list mostly matters when other devices connect to your PC (file sharing, remote access, game servers). Allow only programs that really need it, and leave out public networks where you can.

2. Where to look when updates or sign-in fail

  • Outgoing connections are allowed by default, so a program missing from the allowed list does not stop its updates.
  • Check whether an old outbound block rule you created is still there (on the screen in step 3), and whether a separately installed security program's firewall is blocking it.
  • On a work PC, an administrator's policy may be the cause, so asking IT is the quickest route.

3. Cut off internet access for one program (outbound rule)

  • Search for Windows Defender Firewall with Advanced Security in the Start menu (or press Win + R and type wf.msc).
  • Select Outbound Rules on the left and click New Rule on the right.
  • Choose Program → This program path and select the .exe file you want to block.
  • Choose Block the connection, tick every network type (Domain, Private, Public), give it an easy-to-recognize name and finish.
  • To undo it, right-click the rule on the same screen and choose Disable Rule or Delete.

Create it with one command

You can create the same rule in PowerShell opened as administrator. Replace the text in quotes with your own name and path.

  • New-NetFirewallRule -DisplayName "Example block" -Direction Outbound -Program "C:\Program Files\Example\app.exe" -Action Block
  • To remove it: Remove-NetFirewallRule -DisplayName "Example block"

Good to know

  • Many programs update through a separate file (such as updater.exe), so blocking the main program may not block updates. On the other hand, blocking updates means missing security fixes, so choose carefully.
  • Programs that need to verify a license or sign in may not work properly without internet access.
  • Turning the firewall off entirely is not recommended. Handling just the programs you need with rules is safer.

Sources: Microsoft Support – Risks of allowing apps through Windows Firewall, Microsoft Learn – Windows Firewall rules, Microsoft Learn – New-NetFirewallRule

Blog

← Back to the list Back to top ↑