How do I turn off download blocking on Mac?

One of the security features in macOS is a prompt that appears when opening a program for the first time: This is an application downloaded from the Internet. Are you sure you want to open it?

While this can be helpful to the average Joe, preventing him from opening programs he may have downloaded accidentally (such as malware), power users may wish to circumnavigate the prompt. If you already practice good housekeeping with what you download and open, this dialog can be a time waster. There are various ways to deal with it, and this guide will talk you through their pros and cons.

How do I turn off download blocking on Mac?

Four ways to open Mac app downloaded from the Internet: hide

1. Right-click to open

2. Permit via System Preferences

3. Disable Gatekeeper entirely

4. Disable quarantining

1. Right-click to open

This is by far the easiest and most secure method to deal with Gatekeeper prompts. Although it still takes some time and doesn’t avoid having to deal with prompts entirely, it allows you to instantly open applications whilst keeping security enabled.

To open a file blocked by Gatekeeper without referring to System Preferences or disabling it, simply right-click the file in question (or control-click if that’s your thing), and in the menu which appears, select Open. A prompt will now appear asking for confirmation. Hit Open once more, and your application will open.

How do I turn off download blocking on Mac?

In the future, the application will open without confirmation as it has been approved. You only need to do this on the first launch. This method works for both the “X is an application downloaded from the Internet. Are you sure you want to open it?” and “X can’t be opened because it was not downloaded from the App Store” prompts and leaves Gatekeeper enabled at all times.

2. Permit via System Preferences

This method is functionally identical to option 1, and as it takes a little longer, it is probably less desirable. Still, it is good to know that it’s there. First, double-click the application. Once the prompt appears saying it cannot be opened, cancel it and launch System Preferences. Navigate to the Security & Privacy section, and under the General tab, you’ll see your blocked program. Simply click Open Anyway to launch it. As before, you only need to do this once per program.

How do I turn off download blocking on Mac?

3. Disable Gatekeeper entirely

This method completely avoids dealing with prompts, but with a painfully obvious downside: the complete loss of Gatekeeper protections. For this reason, I do not recommend this method unless you really know what you’re doing and know how to personally check the provenance and integrity of your downloaded files through another method.

If you’re sure you don’t want Gatekeeper to vet your files, follow the instructions below to render it utterly impotent:

1) Open Terminal on your Mac.

2) At the prompt, enter the following command:

sudo spctl --master-disable

3) Hit Enter to issue it, and then launch System Preferences.

4) Navigate to Security & Privacy, and under General, you should now see a third toggle in the Allow apps downloaded from: section, which wasn’t there before.

How do I turn off download blocking on Mac?

As you can see, we can now Allow apps downloaded from: Anywhere, which indicates that Gatekeeper is completely disabled. The OS will never prompt you before opening any program again. This is the most time-efficient but also least secure method available. Use wisely.

To re-enable Gatekeeper, simply re-select one of the other two toggles. After closing and opening System Preferences, the Anywhere option will have disappeared again, and you will need to re-issue the command in Step 2 to bring it back.

4. Disable quarantining

This method has exactly the same effect as option 3 but goes about it in a different way. I do not recommend anybody use this, as it’s fairly undocumented, and option 3 is a sanctioned method with the same result. But I have included it here for esoteric purposes.

This method disables quarantining of files. Files downloaded from internet applications, such as browsers, Mail, and even AirDrop, are normally marked with a Quarantine attribute by those programs. This is what makes Gatekeeper check their integrity. Gatekeeper doesn’t check any file without a quarantine flag. In effect, quarantining is the property upon which Gatekeeper is built. Option 3 disables Gatekeeper, which means that it will not check any files, even if they have a quarantine flag. This method (option 4) disables the assigning of quarantine flags to files, which means that Gatekeeper thinks it does not need to check them, even though Gatekeeper is not technically disabled.

Although the two methods have the same result, the mechanism used is different. As I mentioned above, this is a slightly odd technique and is probably not ideal to use. To disable the quarantining of files, see below.

1) Open Terminal.

2) At the prompt, enter the following command:

defaults write com.apple.LaunchServices LSQuarantine -bool false

3) Hit Enter to issue the command.

4) To check that the preference has been correctly set, enter this command at the prompt:

defaults read com.apple.LaunchServices

If it has been set, the printout should show LSQuarantine = 0.

How do I turn off download blocking on Mac?

5) Reboot your computer to apply the changes.

6) After the reboot, test it out by trying to open a program downloaded from the Internet.

If you decide you want to turn quarantining back on (which you really ought), you can follow these instructions to re-enable it.

1) Launch Terminal.

2) At the prompt, enter one of the following two commands:

defaults write com.apple.LaunchServices LSQuarantine -bool true

defaults delete com.apple.LaunchServices

The first command reverses the value you set in the original instructions to true, bringing back the dialog box. The second command completely deletes the parameter which you created in the original instructions, bringing back the dialog box. The end result is the same; you can pick whichever you prefer.

3) To check the change has been successful, enter the read command again:

defaults read com.apple.LaunchServices

If you entered the -bool true  command in Step 2, the output should be as follows:

How do I turn off download blocking on Mac?

LSQuarantine = 1 means that the dialog box is enabled. If you entered the delete command in Step 2, the output will look like this:

How do I turn off download blocking on Mac?

This means the parameter has been completely deleted and will revert to the default behavior, which is displaying the dialog box.

4) Reboot.

For an encore, if you wish to remove the quarantine attribute from a single file, you can use the command below. This can be useful because it leaves quarantining in general on, as well as Gatekeeper, but it means that a specific file will no longer bring up the prompt. Perhaps you have an application you know is safe and need to install on multiple computers. To avoid the prompt from appearing on every computer, remove the quarantining. From Terminal:

xattr -d com.apple.quarantine /path-to-quarantined-file

Replace /path-to-quarantined-file with your file’s location, or simply drag the file onto the Terminal window at that part of the command. It will now slip through Gatekeeper’s net as a “known safe file.”

And that’s the way the cookie crumbles. Another minor inconvenience squashed by the power of the command line!

How many of these methods were you always aware of? Do you swear by Gatekeeper or think it’s unnecessary? Did you know the difference between Gatekeeper and quarantining?

Why is my download blocked on Mac?

Check Your Mac's Security & Privacy Settings Sometimes, Safari download problems occur because your Mac doesn't let you open apps from unidentified developers. You'll find this setting in the Security & Privacy pane of System Preferences, which restricts you to opening apps downloaded from the App Store by default.

Why is my Mac not allowing Downloads?

You might need to have a payment method on file, even if the app that you want to download is free. Check the payment method you have on file and make sure that it isn't expired, declined, or failed. If you can't update apps and a message says that “your account is disabled in the App Store”, contact Apple Support.

How do I allow files to download on my Mac?

Select "Security & Privacy" from the "System Preferences" window. Select the "General" tab, and select the lock in the lower left corner to allow changes. Enter your computer username and password, then select "Unlock." In the "Allow apps downloaded from:" section, select the radio button to the left of "Anywhere."

How do I allow my Mac to download from an unidentified developer?

Control-click the app icon, then choose Open from the shortcut menu. Click Open. The app is saved as an exception to your security settings, and you can open it in the future by double-clicking it just as you can any registered app.