Block program in Firewall Windows 10

At first, why we have to block a program with a firewall from access the Internet? There are several reason to do that:

  • A program downloaded from untrustworthy source;
  • A program loads ads periodically from the Internet;
  • A program updates itself without asking for your permission;
  • A program using a peering system that cannot be disabled.

Let's start. Open the Windows 10 firewall. There are two ways to open the firewall:

In the "Run" window, type wf.msc:

Block program in Firewall Windows 10

Or open the "Control Panel", click on the "System and Security", then click on the "Windows Firewall". Click on the "Advances settings".

Block program in Firewall Windows 10

It will open the "Windows Firewall with Advanced Security" windows.

Block program in Firewall Windows 10

There is "Inbound Rules" and "Outbound Rules" in the left part of the panel. The "Inbound Rules" are used to control data received by a program, and the "Outbound Rules" control the data that the program sends out. Click on the "Inbound Rules", then in the right panel, click on the "New Rule...".

Block program in Firewall Windows 10

You'll see the "New Inbound Rule Wizard"

Block program in Firewall Windows 10

Select "Program" and click on the "Next" button. You'll see the window in which you can select a program you want to block.

Block program in Firewall Windows 10

Select the "This program path" end enter the program you want to block.

Warning! If you select a program in a directory where the path includes an environmental variable such as %ProgramFiles%, %APPDATA%, %LOCALAPPDATA% and so on, rules will not work! To fix it, you have to replace environmental variables with a normal path!

Let's consider an example. We'd like to block this program:

c:\Program Files (x86)\Google\Chrome\Application\chrome.exe

Navigate to this program using the button "Browse" and open the program:

Block program in Firewall Windows 10

You can see the path with the environmental variable %ProgramFiles%. Replace it with the normal path:

Block program in Firewall Windows 10

Now it will work.

Press the "Next" button, and select the "Block the connection" in the next screen:

Block program in Firewall Windows 10

Click the "Next" button again, and you see the page with profiles:

Block program in Firewall Windows 10

Check all of them, it will block the program over "Public" and "Private" networks. Click "Next". You'll see the last screen of the "New Inbound Rule Wizard".

Block program in Firewall Windows 10

Enter there any name you want, and click on the "Finish". Now in the central panel of the firewall you can see the new rule for the inbound connection. It will block any connection from the Internet to the program.

Block program in Firewall Windows 10

But this is not enough. You have also setup "Outbound Rules" for the program you want to block from sending data to the Internet. Click on the "Outbound Rules" and then click on the "New Rule...". You'll see the wizard, use it the same way as described above.

Block program in Firewall Windows 10

At the and, the "Outbound Rules" will contains the blocked item. Now test the program for both rules to be sure that it works.

Block program in Firewall Windows 10

If you want to unblock a blocked program, select it in the firewall, click "Delete" on the right panel. You have to do this for both "Inbound Rules" and "Outbound Rules".

You can watch this tutorial on youtube: How to block a program with Windows 10 firewall

BACK

How do I block a program in Windows 10 firewall?

How to Block a Program with Windows Firewall Windows 10.
Open Windows Firewall window. You can click Start, and type Windows Defender Firewall..
Click Advanced settings. ... .
Enter into Firewall rule creation window. ... .
Create a new Firewall rule. ... .
Select the target program. ... .
Name the Firewall rule..

How do I block a program in my firewall?

How to Block Program in Firewall?.
Go to Control Panel. ... .
Select Outbound rules on the left side of the pane..
Once the new Outbound Rules pane opens, select New Rule on the right side..
Ensure that the Program option is selected in the Outbound Rules Wizard and click Next..

How do I block a program in Windows Security?

Go to Start > Settings > Update & Security > Windows Security > Virus & threat protection. Under Virus & threat protection settings, select Manage settings, and then under Exclusions, select Add or remove exclusions. Select Add an exclusion, and then select from files, folders, file types, or process.

How do I block a program from accessing the Internet Windows 10?

How to Block a Program From Connecting to the Internet in Windows 10.
Look toward the left hand-side of the app and click on Advanced Settings..
Once the Advanced Security app is open, click on Outbound Rules, located on the left side..
Now click on New Rule, which will appear on the right-hand side..