How to Block Programs With Windows Firewall (with Pictures)

Table of contents:

How to Block Programs With Windows Firewall (with Pictures)
How to Block Programs With Windows Firewall (with Pictures)

Video: How to Block Programs With Windows Firewall (with Pictures)

Video: How to Block Programs With Windows Firewall (with Pictures)
Video: Just Show Me: How to burn a DVD or CD in Windows 7 2024, May
Anonim

This wikiHow teaches you how to prevent a program from accessing a Windows computer network by blocking it through the Firewall. In order to access the Firewall and block programs, you must have administrator rights. Keep in mind that blocking a program with a Firewall does not always prevent a program from running on the computer.

Step

Method 1 of 2: Blocking Programs

Block a Program with Windows Firewall Step 1
Block a Program with Windows Firewall Step 1

Step 1. Go to Start

Windowsstart
Windowsstart

Do this by clicking on the Windows logo in the lower left corner.

Block a Program with Windows Firewall Step 2
Block a Program with Windows Firewall Step 2

Step 2. Run Firewall

Type in Windows Defender Firewall, then click Windows Defender Firewall located at the top of the Start window.

Block a Program with Windows Firewall Step 3
Block a Program with Windows Firewall Step 3

Step 3. Click on Advanced settings

This link is in the upper-left corner of the Windows Firewall window.

Block a Program with Windows Firewall Step 4
Block a Program with Windows Firewall Step 4

Step 4. Click the Outbound Rules tab on the left side of the window

Block a Program with Windows Firewall Step 5
Block a Program with Windows Firewall Step 5

Step 5. Click New Rule… in the top right corner

This will open a new window that can be used to create Firewall rules.

Block a Program with Windows Firewall Step 6
Block a Program with Windows Firewall Step 6

Step 6. Check the box "Program"

This option is at the top of the page.

Block a Program with Windows Firewall Step 7
Block a Program with Windows Firewall Step 7

Step 7. Click Next at the bottom of the window

Block a Program with Windows Firewall Step 8
Block a Program with Windows Firewall Step 8

Step 8. Select the desired program

In order to block a program, first select the program to find its path:

  • Check the box " This program path ", then click Browse….
  • Click This PC on the left side of the window.
  • Scroll down to the bottom of the screen, and then double-click the name of your computer's hard drive (for example OS (C:)).
  • Double click the folder Program Files.

    If the program you want to block is not here, open the folder where the program is located

  • Find the folder where the program is located, then double-click the folder.
  • Select the program file by clicking on it once.
Block a Program with Windows Firewall Step 9
Block a Program with Windows Firewall Step 9

Step 9. Copy the path for the program

Click the address bar at the top of the window to select the displayed path, then copy the path by pressing Ctrl+C.

This must be done because Windows will reset the path for the file after you open the file in Firewall. This condition can thwart any exit rules you created. This issue can be resolved by pasting the path for the file manually

Block a Program with Windows Firewall Step 10
Block a Program with Windows Firewall Step 10

Step 10. Click Open in the lower right corner of the window

Block a Program with Windows Firewall Step 11
Block a Program with Windows Firewall Step 11

Step 11. Replace the path in front of the application name with the copied path

Highlight the entire path in the "This program path" text box to the last backslash before the application name, then paste the copied path by pressing Ctrl+V.

  • For example, if you want to block Google Chrome in the path "C:\Program Files\Google\Application\chrome.exe", highlight all the text except " chrome.exe " and replace it with the text you copied.
  • It is very important to leave the application name and extension at the end of the path. If you don't, the created rule won't block anything.
Block a Program with Windows Firewall Step 12
Block a Program with Windows Firewall Step 12

Step 12. Click Next three times

The button is at the bottom right of the window on each page. You will be taken to the last page.

Block a Program with Windows Firewall Step 13
Block a Program with Windows Firewall Step 13

Step 13. Name the rule you created

Type any word to serve as the rule name into the text box at the top of the page.

For example, if you want to block Chrome on your computer, you can name it "Block Chrome" here

Block a Program with Windows Firewall Step 14
Block a Program with Windows Firewall Step 14

Step 14. Click Finish located at the bottom of the window

The rules created will be saved and applied. From now on until you disable or delete the rule, the program will not be able to access the internet.

Method 2 of 2: Temporarily Disabling Programs

Block a Program with Windows Firewall Step 15
Block a Program with Windows Firewall Step 15

Step 1. Go to Start

Windowsstart
Windowsstart

Do this by clicking the Windows logo in the lower-left corner or pressing Win.

Block a Program with Windows Firewall Step 16
Block a Program with Windows Firewall Step 16

Step 2. Run Firewall

Type in Windows Defender Firewall, then click Windows Defender Firewall that's at the top of the Start window.

Block a Program with Windows Firewall Step 17
Block a Program with Windows Firewall Step 17

Step 3. Click Allow an app or feature through Windows Firewall

You can find this link at the top left of the Firewall window.

Block a Program with Windows Firewall Step 18
Block a Program with Windows Firewall Step 18

Step 4. Click Change settings

It's in the upper right of the window, above the list of programs installed on your computer.

  • After doing this, you may have to click Yes in the pop-up window to continue.
  • This action will not work if you do not have administrator rights on the computer.
Block a Program with Windows Firewall Step 19
Block a Program with Windows Firewall Step 19

Step 5. Find the program you want to block

The list of programs is in the middle of the page, showing all the programs that Windows Firewall has allowed or blocked. Scroll the screen to find the desired program.

Block a Program with Windows Firewall Step 20
Block a Program with Windows Firewall Step 20

Step 6. Add programs to the list if necessary

If the program you are looking for is not in the list, do the following to add it:

  • Click Allow another app… below the list.
  • Click Browse….
  • Open the location of the program or application file (usually the EXE) that you want to block.
  • Select the desired program or application file.
  • Click Open, then select the program name in the window and click Add if the program is not added automatically.
Block a Program with Windows Firewall Step 21
Block a Program with Windows Firewall Step 21

Step 7. Click the check mark on the left side of the program

This will remove the checkmark that is there so that the program will be blocked by Windows Firewall.

  • If there is no check mark on the left side of the program, it means that Windows Firewall has blocked it.
  • Leave the two checkboxes to the right of the program (namely " Home/Work (Private) " and " Public ") as they are.
Block a Program with Windows Firewall Step 22
Block a Program with Windows Firewall Step 22

Step 8. Click OK located at the bottom of the window

Your changes will be saved and the program will not run on your computer.

Tips

  • Blocking programs through a Firewall is a good method of preventing the entry of malware (programs designed to infiltrate and damage a computer system) or bloatware (useless applications installed by computer manufacturers) that can slow down computer performance.
  • If you don't know where to find the program you want to block, locate it by right-clicking the program shortcut, clicking Open file location, and repeating the steps described above to enter the program folder.

Recommended: