How to Block an App from the Internet on Windows 11 (3 Easy Ways)

Block an app from the internet on Windows 11

To block an app from the internet on Windows 11, you don’t need extra software: Windows Defender Firewall can do it with a single outbound rule. The same rule works on Windows 10.

People usually want this to stop a game from auto-updating, keep an offline tool offline, save data on a mobile hotspot, or stop a program from phoning home. This guide covers three ways, from the built-in firewall to a one-switch app.

Quick answer

To block an app from the internet on Windows 11, open Windows Defender Firewall with Advanced Security, go to Outbound Rules > New Rule, pick Program, browse to the app’s .exe, choose Block the connection and finish. For a one-switch option that also covers Microsoft Store apps, use the free Netcurb app.

Before You Start

  • You need an administrator account to create firewall rules.
  • Windows Defender Firewall must be on. Check it in Settings > Privacy & security > Windows Security > Firewall & network protection. Microsoft explains each setting on its Firewall and network protection support page.
  • Blocking works per program (.exe). Some apps use several executables, such as an updater or a launcher, and each one needs its own rule.

Method 1: Block an App from the Internet on Windows 11 with Firewall

This is the built-in way to block a program from the internet. It takes about two minutes per app.

  1. Press Start, type wf.msc and press Enter. This opens Windows Defender Firewall with Advanced Security.
  2. Click Outbound Rules in the left pane.
  3. Click New Rule… in the right pane.
  4. Choose Program, then click Next.
  5. Select This program path, click Browse and pick the app’s .exe file. It is usually in C:\Program Files or C:\Program Files (x86).
  6. Choose Block the connection, then click Next.
  7. Leave Domain, Private and Public ticked, then click Next.
  8. Give the rule a clear name, such as Block – Photoshop, and click Finish.

The rule takes effect straight away. If the app was already open, restart it so any connections it had already made are closed.

Tip: finding the .exe

Open Start, right-click the app and choose More > Open file location. That opens its shortcut. Right-click the shortcut and choose Open file location again to reach the real .exe.

Why outbound?

An outbound rule stops the app from sending traffic out, which is what cuts it off from the internet. Inbound rules alone won’t do this, because almost every app starts its own connections.

Method 2: Block an App with One PowerShell Command

If you prefer typing to clicking, PowerShell lets you block an app from the internet on Windows 11 with the same rule in one line. Press Win + X and choose Terminal (Admin), one of several hidden Windows 11 shortcuts worth knowing. Then run this, with your own app path:

New-NetFirewallRule -DisplayName "Block - MyApp" -Direction Outbound -Program "C:\Program Files\MyApp\MyApp.exe" -Action Block

What each part does:

  • -DisplayName is the rule name you’ll see in wf.msc.
  • -Direction Outbound applies the rule to traffic leaving your PC.
  • -Program is the full path to the app’s .exe. Keep the quotes if the path has spaces.
  • -Action Block drops the traffic instead of allowing it.

To list the block rules you’ve made this way:

Get-NetFirewallRule -DisplayName "Block -*" | Select DisplayName, Enabled

To remove a rule:

Remove-NetFirewallRule -DisplayName "Block - MyApp"

This method suits power users and anyone blocking several apps at once, because you can paste a list of commands in one go. Microsoft documents every option in its New-NetFirewallRule reference.

Method 3: Block Apps with One Switch Using Netcurb (Free)

Disclosure

Netcurb is a free app made by TechSavvyHelp. It gives you a one-switch way to block an app from the internet on Windows 11. Full disclosure: we built it because Methods 1 and 2 get tedious.

Netcurb lists your installed apps, including Microsoft Store apps, each with its own switch. It uses Windows Defender Firewall underneath, so a blocked app stays blocked after you close Netcurb or restart your PC.

  1. Install Netcurb from the Microsoft Store.
  2. Open it and tap the switch next to the app you want to block, then turn the firewall on.
  3. The first time, approve the one-time administrator prompt. Netcurb sets up a small background service that keeps your rules in place.
  4. Restart the blocked app so any connections it already opened are closed.

It has no account, no ads and no analytics, and it collects no data. Uninstalling Netcurb removes all of its firewall rules and its background service. You can get Netcurb from the Microsoft Store or read more on the Netcurb page.

Block an app from the internet on Windows 11 with Netcurb
Netcurb on Windows 11: every app gets one switch, and blocked apps show a red icon.
Limitation: WebView2 apps

Some apps embed Microsoft Edge WebView2 or use separate helper processes. Blocking only the app’s main .exe may leave that helper traffic working, while blocking msedgewebview2.exe broadly can affect other WebView2-based apps. Netcurb marks apps it detects as WebView2-dependent so you know that a simple per-app rule may be incomplete.

How to Block Microsoft Store Apps

Store (packaged) apps live in the protected WindowsApps folder, so you can’t browse to their .exe in the firewall wizard the usual way. Method 1 doesn’t work well for them.

Netcurb handles them directly from its list. Advanced users can also target a Store app in PowerShell with the -Package parameter, which takes the app’s package security identifier (SID). If the Store itself is misbehaving, see Windows Store not working: 10 fixes.

How to Check the App Is Blocked (and Unblock It)

Check: after you block an app from the internet on Windows 11, open it and do something that needs the internet, such as signing in or checking for updates. You should see an offline or connection error.

To unblock it later:

  • Method 1: open wf.msc, click Outbound Rules, right-click your rule and choose Disable Rule (temporary) or Delete.
  • Method 2: run Remove-NetFirewallRule -DisplayName "Block - MyApp", or Disable-NetFirewallRule with the same name to keep the rule for later.
  • Netcurb: turn the app’s switch back.

App Still Connecting? Common Fixes

  • It has more than one .exe. Block the updater, launcher or helper in the same folder too, for example Updater.exe.
  • It was already open. Close and reopen the app. Existing connections can stay up until it restarts.
  • The firewall is off, or another security suite has replaced it. Rules only work while Windows Defender Firewall is on.
  • It’s a WebView2 or browser-based app. Its traffic comes from a shared process, so per-app blocking is unreliable.
  • A different network profile is active. Open the rule’s properties and make sure Domain, Private and Public are all ticked on the Advanced tab.
  • You’re not sure which process is online. Open Task Manager and sort the Processes tab by the Network column. Our Task Manager guide explains the columns.
Related guide

Want to block a website instead of an app? These six methods cover Windows, Mac and phones.

Frequently Asked Questions

No. Firewall rules are checked by Windows Defender Firewall, which is already running, so a few extra rules have no noticeable performance cost.

Yes. The same methods used to block an app from the internet on Windows 11 also work on Windows 10: wf.msc, the PowerShell commands and Netcurb. On Windows 10, the Win + X menu shows Windows PowerShell (Admin) instead of Terminal (Admin).

No. Outbound rules survive normal Windows updates. They are removed if you choose Restore defaults in the firewall settings or reinstall Windows.

Yes. Create a Custom outbound block rule for the program and set its remote address scope to Internet instead of Any. In PowerShell, add -RemoteAddress Internet to the rule. This leaves traffic to the local subnet outside that block rule. Test the app on your current network, because another overlapping block rule can still take precedence. Netcurb’s standard switch blocks all network access.

Avoid blocking Windows components such as Windows Update, Microsoft Defender or svchost.exe. Doing so can stop security updates and break core features.

Share this guide

Picture of Anwar Alam

Anwar Alam

Anwar Alam is the founder and editor of TechSavvyHelp. He is a Dubai-based full-stack developer and SEO specialist with a Master's degree in Computer Science and 8+ years across web and mobile, including Android (Java), Flutter and Next.js projects. He started TechSavvyHelp to publish clear, step-by-step fixes for everyday Windows, Android and online-security problems. Guides are checked against official Microsoft, Google, Apple and device-maker documentation and updated when software changes. See the Editorial Policy for how guides are researched and corrected.

Get the weekly fix

One email a week. Real fixes, no fluff.

Subscription Form

Keep reading

Join the discussion

Leave a Reply

Your email address will not be published. Required fields are marked *