Why you might want to block a program in your firewall

A firewall blocks programs from sending data to the internet unless you tell it they can. When you block a program, it cannot connect to the web, send information to servers, or receive updates — even if it tries. This is useful when you have software that works fine offline but phones home constantly, or when you want to prevent a program from using your bandwidth without permission.

Blocking is different from uninstalling. The program stays on your computer and runs normally; it just cannot reach the network. This matters when you need the software for work or school but do not trust where it sends data, or when a program has a useful feature but also has a feature you want to turn off.

Both Windows and Mac have built-in firewalls that let you block individual programs. The steps differ between them, and the names of the settings are not always obvious, so this guide walks through both.

Key Takeaways

  • Windows Defender Firewall lets you block a program by finding it in the "Allow an app through firewall" settings and unchecking both Private and Public columns.
  • On Mac, you use a third-party firewall like Little Snitch or Hands Off because the built-in firewall only blocks incoming connections, not outgoing ones.
  • Blocking a program does not delete it or stop it from running — it only prevents it from connecting to the internet.
  • Some programs will show error messages or stop working if they cannot reach the internet, even if they do not need the connection to function.
  • You can unblock a program at any time by reversing the same steps, so blocking is temporary and reversible.

How to block a program on Windows using Defender Firewall

Open Windows Defender Firewall by typing "firewall" into the Windows search box and clicking "Windows Defender Firewall". Once inside, click "Allow an app through firewall" on the left side. You will see a list of programs with checkboxes next to "Private" and "Public" networks.

Find the program you want to block in the list. If it is not there, click "Allow another app" at the bottom, browse to the program's .exe file (usually in Program Files or Program Files (x86)), and add it. Once the program appears in the list, uncheck both the "Private" and "Public" boxes next to its name. Click "OK" to save.

The program is now blocked from using any network connection. If you want to block it only on public networks but allow it on your home network, uncheck only the "Public" box and leave "Private" checked.

How to block a program on Mac

Mac's built-in firewall only blocks incoming connections — programs can still send data out to the internet. To block outgoing connections, you need a third-party firewall. The most common options are Little Snitch (paid, around $45 one-time) and Hands Off (paid, around $30 one-time). Both let you see which programs are trying to connect and block them individually.

Little Snitch shows a notification each time a program tries to connect to the internet. You can click "Deny" to block it once, or "Deny Forever" to block it permanently. Hands Off works similarly but also lets you set rules ahead of time — for example, "block Spotify except between 6 PM and 10 PM".

If you do not want to pay for software, you can use the built-in firewall to block incoming connections by opening System Settings, clicking "Network", then "Firewall Options", and choosing "Enable Stealth Mode". This does not block outgoing connections, but it does prevent other computers from finding your Mac on the network.

What happens when you block a program

A blocked program cannot send data to the internet, receive updates, or connect to cloud services. If the program needs the internet to work — like a web browser, email client, or online game — it will show an error message or stop responding. If the program works offline, it will run normally and you will not notice any difference.

Some programs are designed to fail gracefully when blocked. Others will keep trying to connect in the background, which you might see as repeated error messages or spinning loading icons. A few programs will refuse to run at all if they cannot reach the internet, even if they do not actually need it for their core function.

Blocking a program does not use extra battery, slow down your computer, or cause any other side effect. It straightforward prevents network traffic from that program.

How to unblock a program

On Windows, open Windows Defender Firewall again, click "Allow an app through firewall", find the program in the list, and check the boxes next to "Private" and "Public" again. Click "OK" to save. The program can now connect to the internet.

On Mac with Little Snitch, click the Little Snitch icon in the menu bar and choose "Preferences". Go to the "Rules" tab, find the rule you created for the program, and delete it. On Hands Off, open the app, find the rule in the list, and click the minus button to remove it.

When blocking a program might not work

Some programs use multiple processes or helper applications to connect to the internet. Blocking the main program might not block these background processes. For example, a web browser might have separate processes for extensions, plugins, or background updates. You may need to block each process individually.

Programs that use a VPN or proxy connection might bypass your firewall rules, depending on how the VPN is set up. If you are using a VPN, blocking a program in your firewall does not may provide it cannot reach the internet — the VPN might route its traffic differently.

Administrator accounts on Windows can sometimes override firewall rules. If you are not the administrator on your computer, a program you blocked might still be able to connect if someone with admin access allows it.

Alternatives to blocking a program

If you want to limit a program's internet use without blocking it completely, you can use your router's parental controls or bandwidth limits. Most routers let you set rules for specific devices or programs, though this requires more technical setup than using your computer's firewall.

If you want to prevent a program from running at all, uninstalling it is more thorough than blocking it. Blocking is better when you want to keep the program but prevent it from connecting to the internet.

If you are concerned about a program sending data to unknown servers, you can monitor its network activity using a tool like Wireshark (Windows and Mac) or GlassWire (Windows only). These tools show you exactly which servers a program is trying to reach, which can help you decide whether blocking is necessary.

Frequently Asked Questions

Will blocking a program in my firewall slow down my computer?

No. Blocking a program does not use extra processing power, memory, or battery. Your firewall checks each connection attempt and either allows or denies it — this happens in the background and is not noticeable.

Can I block a program on only my home network but allow it on public WiFi?

Yes, on Windows. In the firewall settings, you can uncheck only the "Public" box and leave "Private" checked. This allows the program on your home network but blocks it on public networks. Mac's third-party firewalls can do this too, but the steps vary by app.

What if I block a program and it stops working?

Unblock it by reversing the steps. If the program needs the internet to function, blocking it will cause errors or crashes. You can also try blocking only the "Public" network setting on Windows to see if that solves the problem while still protecting you on public WiFi.

Does blocking a program stop it from collecting data about me?

Blocking prevents it from sending data to the internet, but it does not stop the program from collecting data on your computer. If you do not trust a program, blocking is a partial solution — uninstalling it is more complete.

Can I block Windows Update or other system programs?

Yes, you can block them in the firewall, but it is not recommended. Windows Update, Microsoft Store, and other system programs are designed to update and function properly with internet access. Blocking them can cause problems with your operating system or security.