This article was co-authored by wikiHow staff writer, Darlene Antonelli, MA. Darlene Antonelli is a Technology Writer and Editor for wikiHow. Darlene has experience teaching college courses, writing technology-related articles, and working hands-on in the technology field. She earned an MA in Writing from Rowan University in 2012 and wrote her thesis on online communities and the personalities curated in such communities.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 1,953,620 times.
Learn more...
This wikiHow article teaches you how to prevent a program from accessing your Windows computer network by blocking it in Windows Firewall. You must have administrator privileges to access Windows Firewall and block programs. Keep in mind that blocking a program from using Firewall doesn't usually prevent the program from running on your computer.
Quick Steps
- Open Windows Defender Firewall in Control Panel.
- Select Allow an app or feature through Windows Firewall.
- Click Change settings.
- Find the program you want to block or add it to the list.
- Uncheck the box next to the program and click OK.
Steps
-
Open Windows Defender Firewall. Press the Win key, type in Windows Defender Firewall, then click Windows Defender Firewall at the top of the Start window.
-
Click Allow an app or feature through Windows Firewall. This link is at the top-left side of the Firewall window.Advertisement
-
Click Change settings. It's at the upper-right side of the window, just above the list of programs on your computer.
- You may have to click Yes on a pop-up window after doing this before you can continue.
- If you don't have administrator privileges on your computer, you won't be able to do this.
-
Locate a program you wish to block. The list of programs in the middle of the page displays all programs that Windows Firewall is blocking or allowing; you can scroll down to find your specific program.
-
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:
- Click Allow another app... below the list.
- Click Browse....
- Go to the location of the app or program file (usually an EXE) you want to block.
- Select the app or program file.
- Click Open, then select the program's name in the window and click Add if it doesn't automatically add.
-
Click the checkmark to the left of the program. Doing so should remove the checkmark, thereby blocking the program through Windows Firewall.
- If there is no checkmark to the left of the program, Windows Firewall is already blocking the program.
- Leave the two checkboxes to the right of the program ("Home/Work (Private)" and "Public") alone.
-
Click OK. It's at the bottom of the window. This will both save your changes and prevent the program from connecting through the network (and/or from running properly on your computer).[1]
-
Open Windows Defender Firewall. Press the Win key, then type in Windows Defender Firewall, then click Windows Defender Firewall at the top of the Start window.
- You can also block a port this way if you don't want data to be sent or received.
-
Click Advanced settings. It's a link in the menu on the left side of the window.
-
Click Outbound Rules. This tab is on the left side of the window.
-
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.
-
Check the "Program" box. You'll find this option at the top of the page.
- Click Next to continue.
- If you'd rather close a port, you can select that option instead.
-
Select a program. Before you can block a program, you'll need to select the program to find its path:
- Check the "This program path" box and click Browse....
- Click This PC on the left side of the window.
- Scroll down and double-click your hard drive's name (e.g., OS (C:)).
- Double-click the Program Files folder.
- If the program you want to block is elsewhere, go to the program's folder instead.
- Find the folder for your program, then double-click the folder.
- Select the program file by clicking it once.
-
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.
- 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 the path to the file.
-
Click Open. It's in the bottom-right corner of the window.
-
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.
- For example, if you wanted to block Chrome in the path "C:\Program Files\Google\Application\chrome.exe", you would select all but the "\chrome.exe" section and replace it with your copied text.
- 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.
-
Continue through the on-screen instructions and name your rule. You can add and create conditions and parameters to your rule, but if you're simply blocking a program, ignore these pages and press Next until you have to name the rule.
- Type whatever you want to name your rule into the top text box on the page. For example, if you're blocking Google Chrome on your computer, you might name your rule "Chrome Block" here.
-
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.
Community Q&A
-
QuestionWhat do I do if the name of the program doesn't appear on the list?Community AnswerChoose the option "Allow another app," and find your program on the computer.
-
QuestionI unchecked the program, but soon it is checked again. Why is that?Community AnswerWhen the program is unchecked, it means it's only temporarily blocked. It will unblock after a certain period of time. If you wish to fully block it, remove it from the list.
-
QuestionHow do I block cookies?Community AnswerCookies can be blocked via your browser settings. Additionally you can deselect the option to store cookies on your computer, and clear existing ones by getting a legitimate anti-malware program.
Video
Tips
-
Blocking a program through Windows Firewall is a good way to prevent persistent malware or bloatware from slowing down your network.Thanks
-
If you don't know where the program you want to block is, you can find it by right-clicking the program's shortcut, clicking Open file location, and repeating until you get to the program's folder.Thanks
Warnings
- Blocking a Windows program through Windows Firewall may cause some Windows processes to stop working.Thanks
References
About This Article
1. Type "defender" into the Windows Search bar.
2. Click Windows Defender Firewall.
3. Click Advanced settings.
4. Click Outbound rules.
5. Click New rule.
6. Select Program and click Next.
7. Select the program.
8. Follow the on-screen instructions.
To learn how to temporarily disable a program, keep reading!
Reader Success Stories
-
"It helped. I studied how to block programs in Firewall. I wish to do more programs like this. Thank you so much. "