guide · static export
Security

Set Up Windows Firewall Rules for Apps That Do Not Need Internet Access

Use Windows Defender Firewall with Advanced Security to block network access for selected applications. Create reversible outbound rules and verify that essential local features still work.

by@guidox updated:10/29/26 time:20 min level:Intermediate works on:Windows 11 25H2, build 26200, Windows Defender Firewall with Advanced Security
⚠ Safety notice

Incorrect firewall rules can break application connectivity, updates, licensing, or security functions. Do not disable the firewall or antivirus to troubleshoot a single application. Blocking one executable may not prevent related processes from accessing the network.

TL;DR

Create application-specific outbound block rules in **Windows Defender Firewall with Advanced Security** for software that does not need network access. These rules reduce connectivity but do not replace malware protection or guarantee that the application cannot communicate through another executable or service.

Before you start

Requirements

  • Windows 11 25H2, build 26200 or a later servicing build.
  • Administrator account.
  • The exact executable path of each application you want to restrict.
  • A record of the original firewall configuration and any essential network features.
Step by step

Instructions

01

Identify the application's executable

Locate the executable belonging to the application you want to restrict. Confirm its publisher and installation directory before creating a rule. Blocking the wrong executable may affect an updater, helper process, or unrelated application.

⚠ warningDo not block Windows system components, security software, or shared services without understanding their network dependencies.
02

Open the advanced firewall console

Search for **Windows Defender Firewall with Advanced Security** and open it as administrator. Select **Outbound Rules**. Outbound rules control connections initiated by applications; they are distinct from inbound rules that govern incoming connections.

tipKeep the firewall enabled and avoid changing the default policy for all applications.
03

Create an outbound program rule

Choose **New Rule**, select **Program**, and specify the verified executable path. Select **Block the connection** and apply the rule to the network profiles appropriate for your device. A block rule can prevent the app from signing in, downloading content, or checking for updates.

⚠ warningApply only the profiles you intend to restrict; a rule limited to one profile will not cover every network.
04

Name and document the rule

Give the rule a clear name that identifies the application and purpose. Add a description if your Windows version offers one, and record the executable path and selected profiles. Descriptive names make later troubleshooting and rollback easier.

tipAvoid broad rules that block every executable in a shared folder.
05

Test the application and local features

Launch the application and test the functions you expect to work offline. Confirm that unrelated applications, Windows Update, and Microsoft Defender still have normal connectivity. Some programs delegate network access to helper processes, so blocking one executable may not block every connection associated with the software.

⚠ warningA rule is not a complete containment boundary for untrusted software.
06

Review the rule when software changes

If the application updates or moves to another installation directory, confirm that the rule still targets the intended executable. Remove stale rules only after identifying their purpose. Re-test the application after any major update.

tipDo not disable the firewall service as a shortcut for troubleshooting connectivity.
Troubleshooting

Common issues

The application still connects to the internet

Confirm that the rule is enabled and targets the actual executable. Check whether a helper process, Windows service, or alternate executable performs the connection.

An application stopped updating

Disable the block rule temporarily and test the updater. If connectivity is required, remove or narrow the rule instead of disabling the firewall globally.

The rule does not appear to apply on another network

Open the rule's Advanced tab and review its Domain, Private, and Public profile selections. Adjust only the profiles you intend to cover.

FAQ

Frequently asked

Does a firewall rule make an app safe?

No. It limits specified network traffic but does not prevent local malicious behavior or every possible network path.

Should I block inbound and outbound traffic?

For an application that only needs to be prevented from initiating internet connections, start with an outbound rule. Add other restrictions only when justified.

Will blocking an app affect offline features?

Usually, local features may continue working, but some apps require network access for licensing, assets, authentication, or local-device discovery.

How to undo this

Open Windows Defender Firewall with Advanced Security > Outbound Rules, find the rule by its documented name, and disable or delete it. Disabling is preferable for initial testing because it preserves the rule for future use. Retest the application after restoring connectivity.

Interactive version: checklist, feedback, related guides →

Free · no account needed · tracks your progress