How to block a program from accessing the internet on Windows
This step-by-step tutorial will show you how to block a program from accessing the internet on Windows 10 and 11 with Windows Firewall.
How to block a program from accessing the internet on Windows 10 and 11
- Click on the Windows Security icon located in the system tray to open Windows Security.
- Click on Firewall & network protection.
- Click on Advanced settings located at the bottom.
- When the User Account Control window appears, you click Yes. Depending on your settings, you may also need to enter the admin password and click Yes.
- In the 'Windows Defender Firewall with Advanced Security' window, you click on Outbound Rules located in the top left corner.
- Click on New Rule located in the top right corner.
- In the next window, you select the Program option.
- Click Next in the bottom right corner of the window.
- Make sure the This program path option is checked.
- Click Browse.
- In the next window, you go to the location on your PC of the program you want to block from accessing the internet. You can find a program in the Program Files or Program Files (x86) folder on the (C:) drive. Like for example: C:\Program Files\Mozilla Firefox\firefox.exe.
- Select the EXE file. For most programs, the main EXE file is the file you want to block. But there are programs for which you have to block another EXE file. You can also block multiple EXE files from the program's folder.
- Click Open.
- Click Next at the bottom of the window.
- Make sure the Block the connection option is checked.
- Click Next.
- Make sure the Domain, Private, and Public options are checked.
- Click Next.
- Type a name for the rule in the name field (e.g., Block Firefox).
- Click Finish.
Now all outbound connections from the program in question are blocked.
If you want to completely block the program from accessing the internet, you click on Inbound Rules in the top left corner and repeat the process you used to create the outbound rule.
If the program still has a connection to the internet, you may need to create one or more rules for other EXE files from the program's folder.
For most programs, the main EXE file is the one to block. But there are programs for which you have to block another EXE file. You can also block multiple EXE files from the program's folder.
Related:
How to block a website in Windows 10 and 11 (step by step)
References:
https://www.laptopmag.com/articles/block-windows-10-programs-connecting-to-internet
https://www.wikihow.com/Block-a-Program-with-Windows-Firewall
https://www.thewindowsclub.com/how-to-block-an-application-from-accessing-the-internet
https://www.makeuseof.com/windows-11-block-apps-from-accessing-internet/