A firewall works as a gatekeeper and blocks unused network ports, and every time an app wants to communicate outside your device, it checks if a rule exists in its database to allow or deny network access. If a rule doesn’t exist, the firewall will prompt you to identify and grant or deny permission. While the Microsoft Defender Firewall does a pretty good job managing which apps and features should connect through the network automatically, sometimes you may need to allow or deny an app manually. In this guide, you’ll learn the steps to allow or deny app access through the firewall on Windows 11.

Allow apps through firewall on Windows 11

To allow an app through the Windows 11 firewall, use these steps: Once you complete the steps, the app will have full access to the network.

Private — Allows the app network access at home or work. Public — Allows the app network access at a public place, such as in a coffee shop.

If you want to block an app through the firewall, you can follow the instructions outlined above, but on step No. 5, make sure to clear the checkmark for the app or feature you want to deny access to the network. This guide focuses on the Microsoft Defender Firewall. However, if you have another security solution, the instructions will be different, as such, you should check your software company support website for more specific steps. All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.