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

Sometimes, any program or service in a firewall may need to be blocked to ensure safe use of the system resources. To perform greater control, users can select the programs or services and can specify whether they can have access through the firewall in an information system.

A firewall can protect a computer system from unwanted contact initiated by any other computers connected through the internet or a network. The system can still allow access to them through the firewall for specific services and apps. But, a firewall can be set to automatically block harmful program access to the system based on user-defined rules.

Steps to Block a Program in a Firewall

This tutorial will be covering the steps to blocking a program in the firewall on the Windows 11 operating system. But, if you have other versions, the procedure is mostly the same.

1. Open the Windows Defender Firewall with Advanced Security settings

The program blocking process begins with opening the Windows Defender Firewall with Advanced Security settings. You can open the window in several ways. You can open the Run window (Windows key + R) and type WF.msc into the terminal, or you can use the search option to open Windows Defender Firewall, and select the Advanced Security option in the left sidebar.

In the Windows Defender Firewall with Advanced Security settings, you can select two types of rules: Inbound Rules and Outbound Rules.

Step 1: Open Windows Defender Firewall with Advanced settings.

2. Select Inbound Rules or Outbound Rules

You can access the Outbound Rules or Inbound Rules settings by clicking on the corresponding option in the left sidebar. The program-blocking process is similar for both types of rules. For this article, we will block a program in a firewall on Outbound Rules. After clicking Outbound Rules, you will see the checkboxes containing outbound rules with name, group, profile, and status.

Step 2: Select Inbound or Outbound rules.

3. Click the New Rule… option

To block a program in the firewall, click New Rule… in the right sidebar. On the Rule Type window of the New Outbound Rule Wizard, you have four options: Program, Port, Predefined, and Custom. You will also see the steps in the right sidebar, which are Rule Type, Program, Action, Profile, and Name.

Step 3: Click the New Rule option.

4. Select the Program option

To block a program select Program, and click next. Here, you can do this rule to all programs or a specific program.

Step 4a: Select the Program option.

For all programs, you need just select All programs, or for a specific program, select This program path:, and click Browse. This will open the program folder on your computer, so you can locate your executable (.exe) file for the specific program. After locating your executable, click Next.

Step 4b: Select the Program option.

5. Select the Block the connection option

On the Action window of New Outbound Rule Wizard, you have three options: Allow the connection, Allow the connection if it is secure, and Block the connection. To block the program, select Block the connection, and click Next.

Step 5: Select the Block the Connection option.

6. Specify the Profiles and Name

On the Profile window of New Outbound Rule Wizard, you have three options: Domain, Private, and Public. You can specify when the rule will apply. Select the profiles, and click next.

Step 6a: Specify the Profiles and Name.

On the Name window of New Outbound Rule Wizard, you can specify the name and description of the rule. After specifying the name, click Finish.

Step 6b: Specify the Profiles and Name.

Now, you have successfully blocked a program in a Windows 11 firewall.

Step 6c: Specify the Profiles and Name.

You can see the checkboxes containing your outbound rule with name, group, profile, and status. To unblock the Program, you simply select and delete the rule.

There are also options for filter rules by profile, state, and group. To disable or enable a program you just need to open Windows Defender Firewall with Advanced Security, and then, Inbound Rules or Outbound Rules. Click on the program you want to apply the operation, then click Disable Rule or Enable Rule in the left sidebar. Here, you can also perform several operations including cut, copy, delete, or view properties.

Read more: 7 Different Types of Firewalls & Deployment Options Explained

Are the Steps the Same for Other Firewalls?

A firewall is important to control traffic in a network to ensure protection against today’s threats such as hacker and malware attacks. Computing system manufacturers include in-built firewalls, and many reputed cybersecurity vendors are offering different types of firewalls with context-aware network security features or are integrating with other services. So, the process steps of blocking a program in a firewall can vary according to the firewall and the operating system.

For example, in macOS, the blocking process steps are following:

  • Turn on the Firewall.
  • Open the Firewall Options.
  • Click Remove App (-).
  • Select the app you want to remove.
  • Change the option Allow incoming connections to Block incoming connections.
  • Click OK.

To unblock a program in the macOS firewall, just change the Block incoming connections to Allow incoming connections. To allow a program, follow the same steps, but rather than clicking Remove (-), click Add application (+). Then, select a program you want to add, and click Allow incoming connections.

Optimizing Your Firewall Settings

Firewalls are an essential part of today’s network security and they can block threatful access to protect valuable information and resources. Proper use of a firewall ensures complete protection of your business data against today’s threats.

You can follow the steps above to block a program or manage your firewall. Although, installing a proprietary firewall software may be an easier approach to blocking a program or managing a firewall, depending on scale. Many cybersecurity vendors offer firewalls with state-of-the-art technology, high functionality, and usability, which are easy to use and customize and ensure a deeper level of protection.

Learn more about where to place firewalls in your network.

Al Mahmud Al Mamun
Al Mahmud Al Mamun
Al Mahmud Al Mamun is a writer for TechnologyAdvice. He earned his B.S. in computer science and engineering from Prime University, Bangladesh. He attained more than 25 diploma courses and 100 certificate courses. His expertise and research interests include artificial intelligence (AI), artificial neural networks, and convolutional neural networks.
Get the Free Newsletter!
Subscribe to Cloud Insider for top news, trends & analysis
This email address is invalid.
Get the Free Newsletter!
Subscribe to Cloud Insider for top news, trends & analysis
This email address is invalid.

Latest Articles

Cloud Storage Pricing in 2023: Everything You Need to Know

Cloud storage pricing is complex. Learn the basics of cloud storage pricing and how to find the best deal for your business.

Flash vs. SSD Storage: Is there a Difference?

Many people use the terms “flash” and “SSD” interchangeably when discussing solid state drives (SSDs)—even experts. While the two technologies are very closely related,...

8 Best Enterprise NAS Devices for 2023

Discover the best enterprise NAS devices for 2023. Learn about the features and benefits of the top NAS devices for businesses and organizations.