Prevent macOS Safari from Opening Apps?

Apple’s universal links “feature” allows a developer to specify that clicking on particular http/https links in Safari will open an associated app (if installed) rather than opening in Safari itself.

If you know that a particular link is configured to open in an app instead of Safari, but you want to open it in Safari on a Mac instead of the app, you generally can work around the “feature” by control-clicking the link and choosing “Open Link in New Tab” or similar.

Unfortunately, if you encounter the link in a different program, like Outlook or Mail, or a PDF document, and Safari is your default browser, the link will open in Safari and then redirect to open in the associated app.

Personally, I almost never want such links to open in an app. I nearly always want them to open in a web browser.

As far as I have been able to determine, there is no way to disable this behavior by setting a preference. Aside from deleting the offending app from my Mac, the closest solution I have found is to block swcd (Shared Web Credentials Daemon) from accessing the Internet via the Little Snitch firewall. (Thanks @mjtsai and Jeff Johnson.)

Does anyone know of a solution for disabling “universal links” on macOS that does not involve using a firewall app like Little Snitch?

(By the way, the same issue occurs on iOS/iPadOS.)

1 Like

Try a long press (iOS) or right click (macOS) to give a list of options for opening a link. Tedious but useful.

1 Like

Thanks. The vexing problem on the Mac side of things is that I most often encounter the unwanted behavior when clicking on a link in a Mail program or a PDF, which then opens the associated app indirectly through Safari.

In that scenario, there is no opportunity to right-click/control-click to open in a new Safari tab.

It’s true that you might be able to copy the link to paste it into Safari, or you might be able to right-click to open in a different browser, but for any number of reasons, neither solution is great.

I’ll probably just delete the app from my Mac, which is a pity, because some tasks are much easier to perform in the app or simply aren’t available via the web (and vice versa).