How to Block a Program in a Firewall in 6 Steps (Easy Tutorial) (2024)

Enterprise Storage Forum content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

A firewall protects computer systems from unwanted contact initiated by other computers connected over the internet or a network by blocking harmful programs based on user-defined rules. Individual services and applications can be granted access to pass through the firewall. This article explains how to block a program in a firewall to help you protect your system from unwanted access.

Table of Contents

Steps to Block a Program in a Firewall

This tutorial on how to block a program in a firewall applies to computers running Microsoft Windows 11 operating system. Some details might vary slightly for Windows 10 or older versions, but the procedure is essentially the same.

1. Open the Settings for Windows Defender Firewall with Advanced Security

Use one of the following methods to open the Windows Defender Firewall with Advanced Security.

Method 1

  • Press the Windows key and the R key at the same type to open the Run dialog box.
  • Type “WF.msc” into the box.
  • Hit the “OK” button or Enter.

Method 2

  • Press the Windows key to open the search function.
  • Start typing “Windows Defender Firewall” and select the application when it appears.
  • From the Windows Defender Firewall screen, select Advanced Settings in the left sidebar.

How to Block a Program in a Firewall in 6 Steps (Easy Tutorial) (1)

2. Select Inbound Rules or Outbound Rules

Choose whether you want to set an inbound rule allowing access to your computer for an external application or program, or an outbound rule allowing an application or program installed on your computer external access through the firewall.

The program-blocking process is similar for both types of rules—for this example, we’ll choose Outbound Rules to block a program in the firewall.

Select the appropriate option from the left sidebar of the Windows Defender Firewall with Advanced Security screen. A list of outbound rules appears detailing their names, groups, profiles, and status (enabled/disabled).

How to Block a Program in a Firewall in 6 Steps (Easy Tutorial) (2)

3. Create a New Rule

In the sidebar to the right of the list of existing outbound rules, click the “New Rule…” option. The New Outbound Rule Wizard opens, presenting four options for type of outbound rule:

  • Program
  • Port
  • Predefined
  • Custom
How to Block a Program in a Firewall in 6 Steps (Easy Tutorial) (3)

4. Select “Program”

Select Program and click the “Next>” button. The Program dialog box opens to ask whether you want this rule to apply to all programs or just one specific program.

How to Block a Program in a Firewall in 6 Steps (Easy Tutorial) (4)

To block a specific program, select the “This program path” option and click the “Browse…” button to open the program folder.

Locate and select the executable file (.exe) for the program you want to block.

Click the “Next>” button.

How to Block a Program in a Firewall in 6 Steps (Easy Tutorial) (5)

5. Block the Connection

The Action window of the New Outbound Rule Wizard opens, presenting three options:

  • Allow the connection. This includes connections that are protected with IPsec and well as those that are not.
  • Allow the connection if it is secure. This includes only connections that have been authenticated by using IPsec. Connections will be secured using the settings in IPsec properties and rules in the Connection Security Rule node.
  • Block the connection. This blocks the connection.

Select “Block the connection” and click the “Next>” button.

How to Block a Program in a Firewall in 6 Steps (Easy Tutorial) (6)

6. Specify the Profiles

The Profile window of the New Outbound Rule Wizard opens, presenting three options:

  • Domain–Applies when a computer is connected to its corporate domain.
  • Private–Applies when a computer is connected to a private network location, such as a home or workplace.
  • Public–Applies when a computer is connected to a public network location.

Specify when the rule will apply and click the “Next>” button.

How to Block a Program in a Firewall in 6 Steps (Easy Tutorial) (7)

7. Assign the Rule a Name and Description

The Name window of the New Outbound Rule Wizard opens. In the empty fields, assign a name and description for the rule. Click the “Finish” button.

How to Block a Program in a Firewall in 6 Steps (Easy Tutorial) (8)

The Windows Defender Firewall with Advanced Security box lists all the existing outbound rules. Confirm that your new rule is included in the list. The program is now blocked; to unblock it, simply select and delete the rule.

You can unblock other programs the same way—to find them, sort the list by name, profile, state (enabled/disabled), or group and click Disable Rule in the right sidebar. You can also perform cut, copy, and delete rules or view their properties.

How to Block a Program in a Firewall in 6 Steps (Easy Tutorial) (9)

Are These Steps the Same for Other Firewalls?

Firewalls are essential for controlling traffic in networks and ensuring protection against hackers, malware, and ransomware attacks. Most computer operating systems (OS) include built-in firewalls, and many cybersecurity vendors offer third-party firewalls with context-aware network security features that integrate with other services.

The process involved in blocking a program in a firewall can vary based on the firewall and operating system, but the steps are similar to those modeled here.

Bottom Line: Optimize Your Firewall

While the steps covered here apply to blocking a program in a firewall for an individual computer, enterprise-scale firewalls can be deployed to protect entire networks of computers. These enterprise-class products perform the same functions as an individual firewall by using rules to determine whether to allow access to programs and apps.

Firewalls are a critical part of network security, blocking inbound access for harmful programs and applications and preventing outbound access for installed applications and services. When configured properly and used appropriately, a firewall can safeguard your data against today’s threats.

Learn more about where to place firewalls in your network.

How to Block a Program in a Firewall in 6 Steps (Easy Tutorial) (2024)

FAQs

How to Block a Program in a Firewall in 6 Steps (Easy Tutorial)? ›

Click on Windows Firewall in the Control Panel. On the left panel, click on Advanced Settings. Click on Outbound Rules. This is where you can revoke internet access for any particular app.

How do I disable a specific program in Windows Firewall? ›

Click on Windows Firewall in the Control Panel. On the left panel, click on Advanced Settings. Click on Outbound Rules. This is where you can revoke internet access for any particular app.

How do I block everything in Windows Firewall? ›

Under the Incoming connections section, you'll find a single checkbox for Blocks all incoming connections, including those in the list of allowed apps. Checking this box tells the Microsoft Defender Firewall to ignore the allowed apps list and block everything.

How do I block or unblock a program in Mcafee firewall? ›

Here's how:
  1. Open LiveSafe or Total Protection.
  2. On the left menu, click the My Protection. tab.
  3. Under Device, click Advanced Firewall.
  4. Click Allow or block connections.
  5. Click Blocked connections to see all blocked connections, or click Allowed connections to see all connections that you've allowed.

How do I exclude a program from my firewall? ›

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 stop a firewall application? ›

Turning off the Windows firewall
  1. Select Start > Control Panel > System and Security > Windows Firewall. ...
  2. Select Turn Windows Firewall on or off. ...
  3. Select Turn off Windows Firewall (not recommended) for both Home or work (private) network location settings and Public network location settings, and then click OK.

How do I block all traffic in my firewall? ›

To do this, you can press Win + R and type wf. MSc, press Enter to open Windows Firewall with Advanced Security, click Outbound Rules, create a new outbound rule to block all traffic (choose Block as the action), and then create additional rules to allow specific URLs or IP addresses (choose Allow as the action).

How to block a website in Windows Firewall? ›

Block inappropriate websites on child's account:
  1. Sign in your own Microsoft account.
  2. Find your child's account on the Your family page.
  3. Click on More options > Content restrictions.
  4. Go to the Web Browsing section. Enable the Block inappropriate websites option.
  5. Enter the unwanted websites to Always blocked section.
Jan 2, 2024

How do I find the blocking rule in Windows Firewall? ›

To see if your firewall is blocking a website, app, or port on Windows, go to Windows Firewall > Advanced Settings and check your Outbound rules. On a Mac, click the Apple icon > System Settings > Network > Firewall > Options to check your firewall settings.

How do I allow a program to run that firewall is blocking? ›

Click the Start button, then type Windows Firewall in the Search box. Click Windows Firewall, and then click Allow a program or feature through Windows Firewall. Click the Change settings button. If a User Account Control window appears, click Yes, or enter your user name and password, then click OK.

Is Windows Defender as good as McAfee? ›

Both top antivirus software solutions offer personal and group plans and both performed well during testing. Microsoft scored 98.8% in the AV-Comparatives protection test and gave only three false positives, detecting clean samples as malicious. McAfee scored higher, with 99.6%, and also with three false positives.

How do I completely block McAfee? ›

Disabling McAfee Antivirus and Firewall Protection
  1. Open your McAfee software, such as LiveSafe or Total Protection.
  2. On the left menu, click the My Protection tab.
  3. Click Real-Time Scanning.
  4. Click Turn off.
  5. In the Turn off dialog, select when you want Real-Time Scanning to resume, then click Turn off.

How do I block outgoing connections with firewall? ›

To do this, you can press Win + R and type wf. MSc, press Enter to open Windows Firewall with Advanced Security, click Outbound Rules, create a new outbound rule to block all traffic (choose Block as the action), and then create additional rules to allow specific URLs or IP addresses (choose Allow as the action).

How do you check if firewall is blocking a port or a program? ›

To see if your firewall is blocking a website, app, or port on Windows, go to Windows Firewall > Advanced Settings and check your Outbound rules.

How to block a website using Windows Firewall? ›

Here's how to block URLs in Windows Firewall:
  1. Type "Firewall" on the Windows search bar to open it.
  2. Next, locate "Advanced Settings".
  3. In the "Outbound Rules" menu, click on "New Rule" and tap "Custom" from the drop-down menu.
  4. This is going to take you to another page. ...
  5. Click on "Block Connection" and click on "Next".

How to block apps on Windows 10? ›

How to disable apps access from Group Policy
  1. Open Start.
  2. Search for gpedit and click the top result to open the Local Group Policy Editor.
  3. Browse the following path: User Configuration > Administrative Templates > System.
  4. On the right side, double-click the "Don't run specified Windows applications" policy.
Jan 21, 2023

Top Articles
Meucci Cues FAQ - Meucci Cues
What's The Average Small Business Loan Amount?
Workday Latech Edu
According To The Wall Street Journal Weegy
Goteach11
Palace Pizza Joplin
Publix 147 Coral Way
Bill Devane Obituary
How To Delete Bravodate Account
Dusk
What Is Njvpdi
Truck Toppers For Sale Craigslist
Panorama Charter Portal
10-Day Weather Forecast for Florence, AL - The Weather Channel | weather.com
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Craigslist Free Stuff Greensboro Nc
Roof Top Snipers Unblocked
Missed Connections Dayton Ohio
Zack Fairhurst Snapchat
Www.publicsurplus.com Motor Pool
Epguides Strange New Worlds
Project, Time & Expense Tracking Software for Business
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Doublelist Paducah Ky
Yugen Manga Jinx Cap 19
Penn State Service Management
Log in to your MyChart account
Filmy Met
Dtlr On 87Th Cottage Grove
Brenda Song Wikifeet
Current Time In Maryland
47 Orchid Varieties: Different Types of Orchids (With Pictures)
Blackstone Launchpad Ucf
How to Get Into UCLA: Admissions Stats + Tips
Hermann Memorial Urgent Care Near Me
Reborn Rich Ep 12 Eng Sub
Best Restaurants In Blacksburg
Craigslist Pets Huntsville Alabama
Gpa Calculator Georgia Tech
Ticket To Paradise Showtimes Near Marshall 6 Theatre
Spn-523318
Tillman Funeral Home Tallahassee
Lovein Funeral Obits
Tgirls Philly
10 Types of Funeral Services, Ceremonies, and Events » US Urns Online
Searsport Maine Tide Chart
The Pretty Kitty Tanglewood
Graduation Requirements
Terrell Buckley Net Worth
Glowforge Forum
Phumikhmer 2022
Latest Posts
Article information

Author: Mrs. Angelic Larkin

Last Updated:

Views: 6696

Rating: 4.7 / 5 (67 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Mrs. Angelic Larkin

Birthday: 1992-06-28

Address: Apt. 413 8275 Mueller Overpass, South Magnolia, IA 99527-6023

Phone: +6824704719725

Job: District Real-Estate Facilitator

Hobby: Letterboxing, Vacation, Poi, Homebrewing, Mountain biking, Slacklining, Cabaret

Introduction: My name is Mrs. Angelic Larkin, I am a cute, charming, funny, determined, inexpensive, joyous, cheerful person who loves writing and wants to share my knowledge and understanding with you.