Adjust the settings on your Mac to prevent downloads from opening automatically. This setting change protects your privacy, even if it requires a little convenience.
Prevent Safari from automatically opening ZIP and DMG files on macOS (disable automatic opening of safe files after downloading)
The Safari browser includes a default feature that opens all files it considers safe once the download is complete. While it is useful to have it enabled, this feature can have a negative impact on your online security. Safari considers the following file types to be safe:
It's safer to manually open downloaded files and scan them with antivirus software, but you should first disable the Open Safe Files setting in Safari.
To disable the "Open Secure Files" setting on a Mac using Safari preferences on a macOS computer: