How to Block Programs in Windows 11 Firewall

Learn to control which applications can access the internet on your Windows 11 PC by configuring firewall rules, boosting your system’s security and privacy.

How to Block Programs in Windows 11 Firewall

Controlling which programs can connect to the internet is an important part of managing your computer’s security. Windows 11 includes a built-in firewall that allows you to block specific applications from accessing the network. This guide will walk you through the process of setting up firewall rules to restrict internet access for individual programs.

Step 1: Open the Windows Security app by clicking the Start button and typing “Windows Security”, then selecting the app from the search results. This centralized hub provides access to various security features, including the firewall settings we need to adjust.

Step 2: In the Windows Security window, click on “Firewall & network protection” in the left sidebar. This section contains all the controls for managing your PC’s firewall settings.

Step 3: Scroll down and click on “Advanced settings” at the bottom of the Firewall & network protection page. This opens the more detailed Windows Defender Firewall with Advanced Security interface, where we can create custom rules for applications.

Step 4: In the left pane of the new window, select “Outbound Rules”. Then, in the Actions pane on the right side, click “New Rule…”. Outbound rules control how programs on your computer can send data to the internet, which is what we want to restrict.

Step 5: The New Outbound Rule Wizard will appear. Select “Program” as the rule type and click “Next”. On the following screen, choose “This program path” and click “Browse” to locate the executable file (.exe) of the program you want to block. Once you’ve selected the program, click “Next”.

Step 6: On the Action screen, select “Block the connection” and click “Next”. This setting prevents the chosen program from establishing any outbound connections through the firewall.

Step 7: Choose when to apply this rule by selecting the appropriate network profile(s) – Domain, Private, and/or Public. If you’re unsure, select all three for maximum coverage. Click “Next” to continue.

Step 8: Give your new rule a descriptive name and optional description. This helps you identify the rule later if you need to modify or remove it. Click “Finish” to create the rule and add it to your firewall configuration.

After completing these steps, the selected program will be blocked from accessing the internet. You can verify this by trying to use the program – it should no longer be able to connect online.

Managing Firewall Rules

Once you’ve created firewall rules, you may need to adjust them over time. Here’s how to manage existing rules:

Disabling a rule: If you want to temporarily allow a blocked program to access the internet, you can disable its rule without deleting it. In the Windows Defender Firewall with Advanced Security window, find the rule in the Outbound Rules list, right-click it, and select “Disable Rule”.

Deleting a rule: To permanently remove a firewall rule, locate it in the Outbound Rules list, right-click, and choose “Delete”.

Modifying a rule: To change the settings of an existing rule, right-click it and select “Properties”. This allows you to adjust which program is affected, when the rule applies, and other advanced options.

Tips for Effective Firewall Management

  • Regularly review your firewall rules to ensure they’re still necessary and relevant.
  • Use descriptive names for your rules to make them easier to manage later.
  • Be cautious when blocking system programs or essential Windows components, as this could cause stability issues.
  • Consider creating separate rules for different network profiles (e.g., allowing a program on your home network but blocking it on public Wi-Fi).
  • If a program stops working after being blocked, check if it requires internet access for essential functions before unblocking it.

Troubleshooting Common Issues

If you encounter problems after setting up firewall rules, try these troubleshooting steps:

Program still connects: Ensure you’ve selected the correct executable file when creating the rule. Some programs have multiple executables or use system services to connect.

System instability: If blocking a program causes system-wide issues, temporarily disable the rule to see if it resolves the problem. You may need to allow certain Windows components through the firewall for proper functionality.

Performance impact: Having too many firewall rules can slow down your system. Remove unnecessary rules and consider using broader rules (e.g., blocking an entire folder instead of individual files) when appropriate.


By mastering Windows 11’s firewall settings, you’ve gained more control over your computer’s network activity. This not only improves security but also helps manage bandwidth usage and protect your privacy. Remember to periodically review and update your firewall rules to keep your system running smoothly and securely.