How to Block a Program with Windows Firewall

This wikiHow teaches you how to prevent a program from accessing your Windows computer network by blocking it in Firewall. You must have administrator privileges to access Firewall and block programs in it. Keep in mind that blocking a...
Method 1 of 2:

Blocking a Program

  1. How to Block a Program with Windows Firewall Picture 1How to Block a Program with Windows Firewall Picture 1
    Open Start
    How to Block a Program with Windows Firewall Picture 2How to Block a Program with Windows Firewall Picture 2
    . Click the Windows logo in the bottom-left corner of the screen.
  2. How to Block a Program with Windows Firewall Picture 3How to Block a Program with Windows Firewall Picture 3
    Open Firewall. Type in Windows Defender Firewall, then click Windows Defender Firewall at the top of the Start window.
  3. How to Block a Program with Windows Firewall Picture 4How to Block a Program with Windows Firewall Picture 4
    Click Advanced settings. It's a link in the upper-left corner of the Windows Firewall window.
  4. How to Block a Program with Windows Firewall Picture 5How to Block a Program with Windows Firewall Picture 5
    Click Outbound Rules. This tab is on the left side of the window.
  5. How to Block a Program with Windows Firewall Picture 6How to Block a Program with Windows Firewall Picture 6
    Click New Rule…. It's in the upper-right corner of the window. Doing so opens a new window in which you'll create your Firewall rule.
  6. How to Block a Program with Windows Firewall Picture 7How to Block a Program with Windows Firewall Picture 7
    Check the "Program" box. You'll find this option at the top of the page.
  7. How to Block a Program with Windows Firewall Picture 8How to Block a Program with Windows Firewall Picture 8
    Click Next. It's at the bottom of the window.
  8. How to Block a Program with Windows Firewall Picture 9How to Block a Program with Windows Firewall Picture 9
    Select a program. Before you can block a program, you'll need to select the program in order to find its path:
    1. Check the "This program path" box and click Browse....
    2. Click This PC on the left side of the window.
    3. Scroll down and double-click your hard drive's name (e.g., OS (C:)).
    4. Double-click the Program Files folder.
      1. If the program you want to block is elsewhere, go to the program's folder instead.
    5. Find the folder for your program, then double-click the folder.
    6. Select the program file by clicking it once.
  9. How to Block a Program with Windows Firewall Picture 10How to Block a Program with Windows Firewall Picture 10
    Copy the program's path. Click the address bar at the top of the window to select the path there, then press Ctrl+C to copy the path.
    1. This is necessary because Windows will restructure the path to the file once you open the file in Firewall, thus breaking your outbound rule. You can bypass this problem by manually pasting in the path to the file.
  10. How to Block a Program with Windows Firewall Picture 11How to Block a Program with Windows Firewall Picture 11
    Click Open. It's in the bottom-right corner of the window.
  11. How to Block a Program with Windows Firewall Picture 12How to Block a Program with Windows Firewall Picture 12
    Replace the path before the app's name with your copied one. Highlight the path in the "This program path" text box all the way up to the last backslash before the app's name, then press Ctrl+V to paste in your copied path.
    1. For example, if you wanted to block Chrome in the path "C:Program FilesGoogleApplicationchrome.exe", you would select all but the "chrome.exe" section and replace it with your copied text.
    2. Leaving the app's name and extension at the end of the path is crucial, as failing to do so will leave you with a rule that doesn't block anything.
  12. How to Block a Program with Windows Firewall Picture 13How to Block a Program with Windows Firewall Picture 13
    Click Next three times. This button is in the lower-right side of the window on each page. Doing so takes you to the final page.
  13. How to Block a Program with Windows Firewall Picture 14How to Block a Program with Windows Firewall Picture 14
    Enter a name for your rule. Type whatever you want to name your rule into the top text box on the page.
    1. For example, if you're blocking Google Chrome on your computer, you might name your rule "Chrome Block" here.
  14. How to Block a Program with Windows Firewall Picture 15How to Block a Program with Windows Firewall Picture 15
    Click Finish. It's at the bottom of the window. Doing so saves and applies your rule; from now until you delete or disable the rule, your program will not be able to access the Internet.
Method 2 of 2:

Temporarily Disabling a Program

  1. How to Block a Program with Windows Firewall Picture 16How to Block a Program with Windows Firewall Picture 16
    Open Start
    How to Block a Program with Windows Firewall Picture 17How to Block a Program with Windows Firewall Picture 17
    . Click the Windows logo in the bottom-left corner of the screen or press the Win key.
  2. How to Block a Program with Windows Firewall Picture 18How to Block a Program with Windows Firewall Picture 18
    Open Firewall. Type in Windows Defender Firewall, then click Windows Defender Firewall at the top of the Start window.
  3. How to Block a Program with Windows Firewall Picture 19How to Block a Program with Windows Firewall Picture 19
    Click Allow an app or feature through Windows Firewall. This link is at the top-left side of the Firewall window.
  4. How to Block a Program with Windows Firewall Picture 20How to Block a Program with Windows Firewall Picture 20
    Click Change settings. It's at the upper-right side of the window, just above the list of programs on your computer.
    1. You may have to click Yes on a pop-up window after doing this before you can continue.
    2. If you don't have administrator privileges on your computer, you won't be able to do this.
  5. How to Block a Program with Windows Firewall Picture 21How to Block a Program with Windows Firewall Picture 21
    Locate a program you wish to block. The list of programs in the middle of the page displays all programs that Windows Firewall is either blocking or allowing; you can scroll down it to find your specific program.
  6. How to Block a Program with Windows Firewall Picture 22How to Block a Program with Windows Firewall Picture 22
    Add a program to the list if necessary. If you can't find your program in the list, you can add it by doing the following:
    1. Click Allow another app... below the list.
    2. Click Browse....
    3. Go to the location of the app or program file (usually an EXE) that you want to block.
    4. Select the app or program file.
    5. Click Open, then select the program's name in the window and click Add if it doesn't automatically add.
  7. How to Block a Program with Windows Firewall Picture 23How to Block a Program with Windows Firewall Picture 23
    Click the checkmark to the left of the program. Doing so should remove the checkmark, thereby blocking the program through Windows Firewall.
    1. If there is no checkmark to the left of the program, Windows Firewall is already blocking the program.
    2. Leave the two checkboxes to the right of the program ("Home/Work (Private)" and "Public") alone.
  8. How to Block a Program with Windows Firewall Picture 24How to Block a Program with Windows Firewall Picture 24
    Click OK. It's at the bottom of the window. This will both save your changes and prevent the program from running on your computer.
4.5 ★ | 2 Vote