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

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
- Videos, Photos or PDFs Opening in the Wrong App? Change Default Apps by File Type in Windows 11
- New SSD or Hard Drive Not Showing in This PC? Initialize It and Assign a Drive Letter in Disk Management (Windows 10 and 11)
- Windows Won't Start Normally? 3 Ways to Boot Into Safe Mode (Shift + Restart, Settings, msconfig)
- "Scan and Fix" Drive Message? How to Check and Repair Disk Errors With chkdsk (Windows 10 and 11)
- Windows Update Keeps Replacing Your Graphics or Device Drivers? How to Stop Automatic Driver Installs (Device Installation Settings, Group Policy)
- Protect Your PC When You Step Away: Win+L, Dynamic Lock and Automatic Lock With the Screen Saver (Windows 11)
- Blank Icons or Missing Video Thumbnails in File Explorer? How to Rebuild the Icon Cache and Thumbnail Cache (Windows 11)
- How to Check That a Downloaded Program Is Genuine: File Hashes (certutil, Get-FileHash) and Digital Signatures (Windows 10/11)