What are the risks of allowing apps through a firewall?
There are two ways to allow an app through a firewall. Both of them are risky:
When you add an app to the list of allowed apps in a firewall—sometimes called unblocking—or when you open a firewall port, you allow a specific app to send info to or from your PC through the firewall, as though you drilled a hole in the firewall. This makes your PC less secure and might create opportunities for hackers or malware to use one of those openings to get to your files or use your PC to spread malware to other PCs.
Generally, it's safer to add an app to the list of allowed apps than to open a port. A port stays open until you close it, but an allowed app opens the "hole" only when needed.
To help decrease your security risk:
Only allow an app or open a port when you really need to, and follow the steps to remove apps from the list of allowed apps or close ports that you no longer need.
Never allow an app that you don't recognize to communicate through the firewall.
Show allTap or click to open Windows Firewall.
Tap or click Allow an app or feature through Windows Firewall.
Tap or click Change settings.
You might be asked for an admin password or to confirm your choice.
Clear the check box next to the app you want to remove from the list of allowed apps, and then tap or click OK.
Tap or click to open Windows Firewall.
Tap or click Advanced settings.
You might be asked for an admin password or to confirm your choice.
In the Windows Firewall with Advanced Security dialog box, Tap or click Inbound Rules.
Select the rule that you want to disable, and then, in the right pane, tap or click Disable Rule.