Blocking a program in your firewall means telling your operating system to prevent that program from sending or receiving data over the internet or your local network
Every program on your computer that connects to the internet — whether it's a browser, email client, game, or background service — has to pass through your firewall first. Your firewall is a gatekeeper that decides what traffic gets through. By default, Windows Defender Firewall and macOS's built-in firewall allow most programs through once you install them. Blocking a program means you're changing that rule so the firewall stops it from making any network connection at all.
You might block a program because it's sending data you don't want it to send, it's using bandwidth you need for something else, or you simply don't trust it. The block happens at the firewall level, so the program can't bypass it by changing its own settings — the operating system itself refuses to let it connect.
Key Takeaways
- Windows Defender Firewall and macOS both have built-in tools to block programs without installing anything extra.
- On Windows, you access firewall rules through Settings > Privacy & Security > Windows Defender Firewall > Allow an app through firewall, then uncheck the program you want to block.
- On macOS, System Settings > General > Security & Privacy shows which apps have network permissions, though the firewall interface is less detailed than Windows.
- Blocking a program at the firewall level is permanent until you change the rule again — the program cannot override it.
- Some programs will show error messages or stop working if you block them, which is the intended behavior.
How to block a program on Windows
Open Settings and go to Privacy & Security in the left sidebar. Click Windows Defender Firewall, then select Allow an app through firewall. You'll see a list of programs with checkboxes for "Private" and "Public" networks. Find the program you want to block and uncheck both boxes next to it. Click OK to save the change.
If the program you want to block doesn't appear in that list, it means it has never requested network access. In that case, the firewall is already blocking it by default, and you don't need to do anything. If you want to be extra certain, you can click Change settings at the top of the window (you may need to confirm as administrator), then click Add an app and browse to the program's .exe file. Once you add it, uncheck both network types to block it.
After you block a program, it will not be able to connect to the internet or your local network. If the program tries to connect and fails, you'll usually see an error message or the program will simply stop responding. This is normal — it means the firewall is working.
How to block a program on macOS
macOS doesn't have a traditional firewall interface like Windows does. Instead, go to System Settings > General > Security & Privacy. Look for sections labeled Network or Privacy depending on your macOS version. You'll see a list of apps that have requested network access, with toggles next to each one.
Find the program you want to block and toggle it off. This tells macOS to deny that app permission to use the network. Unlike Windows, macOS doesn't separate "private" and "public" networks — the toggle is all-or-nothing. Once you toggle it off, the app cannot access any network connection.
If you don't see the program listed, it may not have requested network access yet. You can also use the built-in firewall by going to System Settings > General > Security & Privacy > Firewall and clicking Firewall Options. This interface is more limited than Windows, but you can enable "Stealth Mode" to make your Mac ignore network requests entirely, which is a more aggressive blocking method.
The difference between blocking and uninstalling
Blocking a program at the firewall is not the same as uninstalling it. The program still exists on your computer and will still run — it just can't connect to the network. This is useful if you want to keep a program installed but prevent it from phoning home, sending telemetry, or using bandwidth.
Uninstalling removes the program entirely from your computer. If you block a program and later decide you want to use it normally, you can simply go back to your firewall settings and re-enable it. If you uninstall it, you have to download and install it again.
When a blocked program stops working
If you block a program and it stops working or shows an error, that's the firewall doing its job. Some programs need network access to function at all — a web browser without internet access is useless, for example. Other programs might need network access for features you don't use, like automatic updates or cloud sync.
If you blocked a program by mistake and want to use it again, go back to your firewall settings and re-enable it. On Windows, check the boxes next to the program again. On macOS, toggle the permission back on. The change takes effect immediately, and the program should be able to connect on its next attempt.
Programs that are harder to block
Some programs run as system services rather than regular applications. These might not appear in your firewall's app list, or they might be listed under a generic name like "svchost.exe" on Windows. If you need to block a service-level program, you may need to use the advanced firewall settings.
On Windows, you can access advanced firewall rules by opening Windows Defender Firewall and clicking Advanced settings on the left. This opens Windows Defender Firewall with Advanced Security, where you can create custom rules by program name, port, or protocol. This is more technical, but it gives you finer control over what gets blocked.
On macOS, the built-in firewall is less granular. If you need to block a system-level service, you may need to use third-party firewall software, though this is rarely necessary for everyday users.
Frequently Asked Questions
Can a program unblock itself if I block it in the firewall?
No. The firewall rule is enforced by your operating system, not by the program itself. The program cannot change your firewall settings or bypass the block. It can only fail to connect.
Will blocking a program slow down my computer?
No. Blocking a program at the firewall doesn't use extra resources or make your computer slower. It actually prevents the program from using bandwidth and CPU cycles to attempt network connections.
What if I block the wrong program?
Go back to your firewall settings and re-enable it. On Windows, check the boxes again. On macOS, toggle the permission back on. The change takes effect immediately, and the program will be able to connect again.
Do I need to restart my computer after blocking a program?
No. Firewall rule changes take effect immediately. The program will be blocked the next time it tries to connect to the network.
Can I block a program on just one network?
On Windows, yes — you can uncheck "Private" but leave "Public" checked, which blocks the program only on public networks. On macOS, the toggle is all-or-nothing for all networks.