How to block an app from the internet on a Mac
In short: macOS has no setting that keeps one app offline, and its built-in firewall can't do it either. You need an outgoing firewall. LuLu does it for free if you don't mind answering alerts; Ranger, Little Snitch and Radio Silence are paid. In Ranger it is one switch next to the app's name.
Why the macOS firewall won't do it
The first place everyone looks is System Settings › Network › Firewall › Options, where there is a list of apps with "Allow incoming connections" and "Block incoming connections" next to each. Adding an app there and choosing Block feels like the answer.
It isn't. That list decides whether other computers may connect to the app. Apple describes the firewall as protection from contact "initiated by other computers" (Apple). When the app itself reaches out, to check a licence, load ads or send a report, the built-in firewall lets it go. Almost everything an app does online starts on your side, so blocking it there changes almost nothing.
Screen Time doesn't help either. It can limit how long an app may be used, but while the app is open it reaches the internet as usual.
What you need is a firewall for outgoing connections. Here are the four common ones, starting with ours.
With Ranger: one switch
Ranger lists every app that has used the network, with a switch beside each.
- Open Ranger and click Traffic.
- Find the app. The list shows every app that has connected to anything.
- Turn off the switch next to its name.
From that moment the app can't reach anything. It keeps running, and whatever it tries is written down, so you can see what it attempted while it was blocked. The same switches are in the menu bar, under the Ranger icon, for the apps that were active in the last minute.
To block an app only for a while, select it so its details appear on the right, and choose Block 1 Hour or Block 24 Hours. Useful for a game before homework is done, or an editor that insists on updating in the middle of a deadline.
Two more modes cover cases where one app isn't the point:
- Block New Apps keeps any app that hasn't connected before offline until you allow it. Handy after installing something you don't fully trust.
- Block Everything lets nothing out except what you allow. Meant for a network you don't trust.
There is a gentler option too. If you like an app but not its analytics, leave the app allowed and switch on a list for it alone in Blocklists for this app. The app keeps working and its trackers stop.
Ranger won't block system services that other apps depend on. If you try, it tells you so instead of breaking your Mac quietly.
With LuLu: free, with alerts
LuLu is a free, open-source firewall by Objective-See. When an app makes a new outgoing connection, LuLu shows an alert with the app's name and the address it wants to reach. Click Block and, by default, LuLu creates a rule for the whole program, so it stays blocked from then on.
The alerts carry useful detail: who signed the app, which process started it, and a button that looks the file up on VirusTotal. You can also narrow a rule to one address or let it expire after a set time. If the alerts become too much, LuLu's passive mode runs silently with the rules you already have.
The cost is attention. In the first days a new LuLu installation asks about a lot of things, and many of them are parts of macOS that most people can't judge.
With Little Snitch or Radio Silence
Little Snitch is the long-standing paid choice. It can ask about each new connection or run in Silent Mode and let you decide later, and its rules can be as broad as an app or as narrow as one server and port. A single licence costs 59 € (Objective Development).
Radio Silence does one thing: it blocks the apps you choose, with no pop-ups. You find the app in its network monitor and click to block it. It costs $9.
Things that don't work well
Switching off Wi-Fi takes every app offline, including the ones you need.
The hosts file can send an address nowhere, but it does so for every app on the Mac, and you would need to know every address the app uses.
The app's own settings may stop the main app while a helper keeps talking. Many apps come with background helpers and updaters that run under their own names, which is why blocking by app in a firewall is more reliable than unticking a box in the app.
If you want to see which apps reach the internet before deciding which one to block, start with how to see which apps on your Mac use the internet.
Ranger's trial lasts 14 days and needs no email or card. Install it, open Traffic, and you will know within the hour which apps you want to switch off.