This guide shows you how to stop a specific application from reaching the internet on Windows 10, using the built-in Windows Defender Firewall. This is useful for blocking telemetry, stopping automatic updates, preventing a game from connecting to servers, or restricting a program you don’t fully trust. You’ll need to be signed in with an administrator account, because changing firewall rules requires those privileges.
What You’ll Need
- A Windows 10 PC with an administrator account.
- The application you want to block must be installed and its main executable file (.exe) must be accessible on your hard drive.
Step-by-Step
- Find the app’s executable file. Right-click the app’s shortcut (on your desktop, Start menu, or taskbar) and select Open file location. If there’s no shortcut, look in the installation folder, usually under
C:\Program Files\orC:\Program Files (x86)\. The main executable is typically named after the program, likeappname.exe. - Open Windows Defender Firewall. Press the Windows key, type Windows Defender Firewall, and press Enter.
- Click “Advanced settings”. This link is on the left side of the window. A new window titled “Windows Defender Firewall with Advanced Security” will open. This is where you manage rules.
- Select “Outbound Rules”. On the left pane of the new window, click Outbound Rules. Outbound rules control traffic leaving your PC, which is what you need to block.
- Click “New Rule…”. On the right pane, under “Actions”, click New Rule…. This launches the Rule Wizard.
- Choose “Program” and click Next. The first page of the wizard asks what type of rule you want. Select Program and click Next.
- Select “This program path” and browse to the .exe. In the next window, choose This program path, then click Browse…. Navigate to the executable you found in step 1, select it, and click Open. Then click Next.
- Choose “Block the connection” and click Next. The next page asks what action to take. Select Block the connection and click Next.
- Leave all profile checkboxes checked and click Next. The profile page asks when this rule applies. Leave Domain, Private, and Public all checked. This ensures the app is blocked on any type of network (home, work, or public Wi-Fi). Click Next.
- Name the rule and click Finish. Give the rule a descriptive name, such as “Block AppName Internet”. You can add an optional description. Click Finish.
- Test the app. Launch the application and try to perform an action that requires internet access (like loading a login screen or checking for updates). It should fail or show a connection error. If it still connects, you may have selected the wrong .exe file, or the app uses a different helper program to access the internet.
Common Mistakes
- Blocking the wrong .exe file. Many apps have multiple executables. A launcher might be separate from the main game or application. If you block the launcher but the main program still connects, you need to block both. Check the app’s installation folder for other .exe files and repeat the process for each one.
- Creating an Inbound rule instead of Outbound. Inbound rules control traffic coming to your PC. To stop an app from sending data out, you must create an Outbound rule.
- Forgetting to check all profiles. If you only block the “Public” profile, the app may still connect when your PC is on a private home network. Keep all three profiles checked to be safe.
- Blocking a service instead of an application. Some apps run as Windows services. This method only works for standard applications with a visible .exe file.
Tips
- Use a path variable for portable apps. If the app is on a USB drive or in a user folder, the path might change. You can use environment variables like
%USERPROFILE%\AppName\app.exein the program path field, but this is more advanced and can be tricky. - Disable, don’t delete. If you want to temporarily allow the app, right-click the rule in the list and select Disable. The rule stays but is inactive. To re-enable, right-click and select Enable.
- Create rules for both directions if needed. While outbound is usually enough, some stubborn apps also listen for incoming connections. If you want to fully isolate an app, create a second rule for Inbound Rules using the same steps, but choose “Block the connection” on the inbound rule.
- Check the rule order. Windows Firewall processes rules in order. If you have a “Allow all” rule that comes before your block rule, it might take precedence. By default, block rules usually override allow rules, but if you have custom rules, be aware of the order.
Troubleshooting
The app still connects to the internet.
- Double-check that the rule is enabled. Look for it in the list of Outbound Rules; it should have a green checkmark icon.
- Verify you selected the correct .exe. Use Task Manager (Ctrl+Shift+Esc) to see the exact path of the running process. Right-click the process and select “Open file location” to confirm.
- The app might use a helper service or a different executable for network functions. Search the app’s installation folder for other .exe files and create block rules for them as well.
- Some apps use a separate updater process that runs from a different folder (like
AppData). Check there too.
You can’t create the rule because you’re not an administrator.
- You must be logged into an account with administrator privileges. If you are, right-click the Windows Defender Firewall icon (or the Command Prompt) and select “Run as administrator” before proceeding.
You accidentally blocked a system app and now something is broken.
- Go to Outbound Rules, find the rule you created, right-click it, and select Delete. The system will revert to its default behavior.
The app was working, but now the rule doesn’t seem to apply.
- Windows updates can sometimes reset firewall settings. Check if your rule is still present. If not, recreate it.
Frequently Asked Questions
Q: Can I block a UWP app (from the Microsoft Store)?
A: Yes, but it’s more complicated. UWP apps are sandboxed. You can use the “This program path” option and browse to the app’s package folder, but the path is long and complex. A simpler method is to use a third-party firewall tool, but for most users, blocking the executable in C:\Program Files\WindowsApps works if you have permission to access that folder.
Q: Will this block all versions of the app, including updates?
A: It blocks the specific .exe file you selected. If the app updates and replaces its .exe with a new one, the rule will no longer apply. You’ll need to recreate the rule after a major update.
Q: Is there a way to block an app from accessing only certain websites?
A: The Windows Firewall works at the program level, not the website level. To block specific websites, you would need to edit the hosts file or use a proxy or DNS-based filtering solution, which is beyond the scope of this guide.
Q: I blocked the app, but now it crashes on startup. Why?
A: Some apps are designed to check for a license or a server connection on launch. If they can’t connect, they may fail to start properly. This is a side effect of blocking. You may need to allow the app to access a specific IP address or port instead of blocking everything, but that’s more advanced.
Q: Does this block the app from being used offline?
A: No. It only blocks network communication. The app will still open and run normally, just without internet access.
Q: Can I export this rule to use on another PC?
A: Yes. In the Windows Defender Firewall with Advanced Security window, right-click the rule and select “Export Policy…”. This saves all rules to a file. You can then import that file on another PC. However, this exports all rules, not just the one.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Turn Off Shutter Sound on iPhone
- VPN Setup on iPhone SE: Step-by-Step Guide
- Fix Internet Not Working on Windows 11
- Fix Right Click Not Working in Firefox
- Compare Two Columns with Comma Separated Values in Excel
- How to Limit Ad Tracking on iPhone Apps