Block any app from the internet with Windows Firewall
Build an outbound rule in Windows Defender Firewall, let blocked apps back in, and reset everything if a rule goes wrong.
You open a small offline tool, and before you've clicked anything it pops up an update banner, loads an ad panel and starts talking to a server you've never heard of. You don't need a third-party firewall to stop that. Windows already ships with one that can cut a single program off from the network while everything else keeps working.
There's one catch: the friendly Windows Security app only lets apps in. To lock an app out, you need the older console that sits behind it, Windows Defender Firewall with Advanced Security. It looks intimidating, yet the job takes about two minutes.
Step 1: Understand what you're about to change
By default, Windows Defender Firewall blocks unsolicited incoming connections and allows all outgoing traffic unless a rule says otherwise. That second half is the part you'll change. An outbound block rule tells Windows: whatever this one program tries to send, drop it.
Two things to have ready:
- An administrator account, because firewall rules apply to the whole PC.
- The full path of the program's .exe file, for example
C:\Program Files\ExampleTool\tool.exe. Open the program's folder in File Explorer and click the address bar to copy the folder path, then add the file name.
The path has to point at the program that actually connects. Some apps use a separate updater or helper .exe in the same folder. If the block doesn't seem to work later, that helper is the usual suspect, and you can repeat the steps for it.
Step 2: Open Windows Defender Firewall with Advanced Security
- Press Start, type wf.msc and press Enter.
- Confirm the User Account Control prompt.
- In the left pane, click Outbound Rules.
You can also get there from Windows Security > Firewall & network protection > Advanced settings. Either way, you land in the same console.
The overview page confirms that outbound connections not matching a rule are allowed on every profile.
Step 3: Create the outbound block rule
Microsoft's own instructions use the Custom rule type, because it walks you through every page of the wizard and hides nothing.
- With Outbound Rules selected, open the Action menu and click New Rule.
- On the Rule Type page, choose Custom and click Next.
- On the Program page, select This program path and type or paste the full path to the .exe. Click Next.
- On the Protocols and Ports page, leave the defaults so the rule covers all traffic. Click Next.
- On the Scope page, leave the defaults as well and click Next.
- On the Action page, select Block the connection and click Next.
- On the Profile page, keep Domain, Private and Public ticked so the block holds on every network, including café Wi-Fi. Click Next.
- On the Name page, give the rule a name you'll recognize later, such as "Block ExampleTool", and click Finish.
The rule takes effect immediately. Start the program and try something that needs the internet: a sign-in, an update check, a cloud sync. It should fail or report that it's offline.
If it still connects, check the path for typos first. Then look in the program folder for a second .exe with a name like "updater" or "helper" and block that one too.
Step 4: Switch a rule off without deleting it
Maybe you need the app online once, to activate a license or pull a single update. You don't have to rebuild anything.
- Open wf.msc again and click Outbound Rules.
- Click your rule in the list.
- In the Actions pane on the right, click Disable Rule.
When you're done, select it again and click Enable Rule. If your PC is managed by an employer through Group Policy, those two commands may be missing, because the admin controls the firewall.
Step 5: Let a blocked app through
The reverse problem is just as common: a game or a chat app shows "can't connect" because the firewall stopped its incoming connections. That's what the Windows Security app handles.
- Open Windows Security and select Firewall & network protection.
- Select Allow an app through firewall.
- Click Change settings and confirm with an administrator password if asked.
- Tick the check box next to the app. If it isn't listed, click Allow another app and enter the path to its .exe.
Every exception is a small hole in your PC's defenses, so only allow programs you trust and actually use. If you're unsure why an app wants to accept connections, leave it blocked and see whether anything breaks.
Step 6: Restore the defaults if you broke something
Firewall experiments can go sideways. You add a rule, forget about it, and a week later your printer, a game launcher or a VPN client stops working. Windows has a reset for exactly this case.
- Open Windows Security > Firewall & network protection.
- Select Restore firewalls to default.
- Confirm the reset.
This returns the firewall to the state it had when Windows was set up. All rules you created yourself disappear, your block rules included, and so do the exceptions apps added during installation. Some programs may ask for permission again the next time they start. If your organization manages the PC, its firewall policies are applied again after the reset.
Before you click it, note the names of any block rules you want to keep. Rebuilding one from Step 3 takes a minute.
Our verdict
The built-in firewall is all you need to stop a single program from going online, and the outbound rule is the tool most people never find. It suits anyone with an app that nags for updates, a tool that should stay offline, or a kid's game that keeps downloading content. Today, pick the one program that bugs you most and give it a block rule; the reset button in Windows Security is there if you overdo it.
Related on UpdateStar
- Windows Security on UpdateStar
- Alternative tool: Windows Firewall Control, a front end for the built-in firewall
- Fort Firewall 3.20.8 adds ready-made rule presets
- Stop ransomware cold: turn on Windows' hidden folder shield




