Mac firewall guides

How to block an app from accessing the internet on Mac

To stop a Mac app connecting out, you need an outbound application firewall. The firewall built into macOS only controls incoming connections, so adding an app to its list won’t keep it offline.

Updated

Step by step

  1. Identify the process. Open the app you want to restrict, then find its process in Activity Monitor, along with any helper that makes the connection. Save your work before you change its network access.
  2. Create a narrow rule. In Outbound’s rules editor, pick the app identity or its exact executable path, choose Block, and scope the rule to one host or to any destination. Then set the protocol and ports you want to block.
  3. Choose a lifetime. Start with a temporary rule, and switch to Forever once you’ve tested the block. If the app uses a helper process, the helper may need a rule of its own.
  4. Test a new connection. Repeat whatever made the app go online. In the Network Monitor, search app: followed by the app’s name (quoted if it has spaces, such as app:"Google Chrome") and look for the blocked destination. Then check sign-in, sync and updates one at a time.
  5. Undo if the app stops working. Disable or remove the new rule and test again. Help › Something Not Working? lists the apps Outbound blocked in the last hour with a one-click Allow, and can pause Outbound for 1 hour or turn off the network filter. If the Mac still can’t connect, turn off the filter in System Settings → Network → Filters (VPN & Filters on systems that use that name).
Outbound All Rules: 13 rules written as sentences, with 6 allowed, 6 blocked and 1 Ask rule; blocklist, profile and organization tags, temporary lifetimes, and a checkbox for each rule, with Slack’s block of mixpanel.com turned off
Outbound Rules, with example rules and profiles.

Which tool should you use?

Apple’s Firewall settings guide covers incoming permissions. A per-app outbound firewall controls something else, which servers an app on your Mac may contact.

If you want a free alternative, LuLu’s official documentation describes a firewall with app and endpoint rules. Its controls differ from Outbound’s, so follow LuLu’s current documentation.

Outbound’s rules can also limit an app to some hosts and block the rest; see how Outbound rules work.

What about pf?

The macOS packet filter, pf, works on network traffic and has no list of app permissions. A block on a destination address can affect several apps that share it. An application firewall shows you which process made each connection, which is what you need here. Don’t paste a system-wide packet-filter ruleset to block one app.

Verify the result

A blocked connection tells you one flow was stopped. The app may still have made other connections, so look at its helpers and other destinations too. If you depend on the app’s licence checks or updates, allow those.

The Outbound steps are written for Outbound 1.5.3 and its command-line help. Download Outbound. Sources for other products and for macOS are linked where they’re used.