Stop Malicious Pop Ups in Safari: A Complete Guide
In this article
To stop malicious pop-ups in Safari, you must enable the built-in pop-up blocker in the browser settings and clear your cache to remove stored malicious scripts. This process prevents websites from launching unwanted windows and stops "browser hijackers" from triggering repetitive alerts that claim your device is infected. By following these steps, you can secure your browsing experience on both macOS and iOS devices.
What You'll Need
- A Mac, iPhone, or iPad with the Safari browser installed.
- Administrative access to the device settings.
- An active internet connection to ensure the browser is updated to the latest version.
Step-by-Step
On macOS (Mac)
- Open Safari: Launch the Safari browser from your Dock or Applications folder.
- Access Settings: Click on the "Safari" menu in the top left corner of your screen and select "Settings" (or "Preferences" in older macOS versions).
- Navigate to Websites: Click on the "Websites" tab located at the top of the settings window.
- Configure Pop-up Windows: In the left-hand sidebar, scroll down and click on "Pop-up Windows."
- Set Global Blocking: At the bottom right of the window, find the dropdown menu labeled "When visiting other websites" and select "Block and Notify." This ensures that Safari blocks pop-ups by default but lets you know if a site attempted to open one.
- Manage Specific Sites: If you see any suspicious websites listed in the current window, select them and click "Remove" to ensure they do not have special permissions to bypass the blocker.
- Clear Browser History: Go to the "History" menu in the top menu bar and select "Clear History..." Choose "all history" and click "Clear History." This removes cached scripts that may be triggering pop-ups.
On iOS (iPhone/iPad)
- Open Settings: Exit Safari and open the main "Settings" app on your home screen.
- Find Safari: Scroll down through the list of apps until you find "Safari" and tap it.
- Enable Block Pop-ups: Under the "General" section, locate the toggle for "Block Pop-ups." Ensure the switch is toggled to the ON position (green).
- Enable Fraudulent Website Warning: Ensure the "Fraudulent Website Warning" toggle is also ON. This uses Google Safe Browsing and Apple's internal lists to warn you before you enter a known malicious site.
- Clear Cache and Data: Scroll down further in the Safari settings menu and tap "Clear History and Website Data." Confirm the action to wipe stored scripts and cookies.
Common Mistakes
- Clicking "Allow" on Pop-ups: Many malicious pop-ups look like system alerts. Clicking "Allow" or "OK" can grant the website permission to send push notifications, which look like pop-ups but are actually browser alerts.
- Ignoring Software Updates: Failing to update macOS or iOS leaves security holes that malicious scripts use to bypass Safari's built-in protections.
- Installing Unverified Extensions: Some "ad-blocker" extensions from untrusted developers are actually adware themselves, creating the very pop-ups they claim to stop.
- Trusting "System Warning" Pop-ups: Real system warnings from Apple will never appear inside a Safari browser window. If a pop-up says "Your Mac is infected with 13 viruses," it is always a scam.
Tips
- Use Private Browsing: If you must visit a site you don't fully trust, use a Private Window (Cmd+Shift+N on Mac). This prevents the site from saving cookies that could be used to track you or trigger future pop-ups.
- Audit Your Extensions: Regularly check Safari Settings > Extensions. If you see anything you didn't intentionally install, uninstall it immediately.
- Check Notification Settings: If you are getting pop-ups in the corner of your screen even when Safari is closed, go to Settings > Websites > Notifications (on Mac) and remove any websites that have permission to send alerts.
- Keep a Clean Cache: Clearing your history and cache once a month helps remove "zombie" scripts that might linger in the browser's memory.
Troubleshooting
If you have enabled the pop-up blocker but are still seeing intrusive windows, try the following steps:
- Check for Adware: If pop-ups appear on every single website, including Google or Apple.com, you may have adware installed on your system. Check your Applications folder for software you don't recognize and move it to the Trash.
- Disable All Extensions: Turn off all Safari extensions. If the pop-ups stop, re-enable them one by one to identify which extension is causing the issue.
- Reset Safari Settings: If the browser behaves erratically, ensure you are on the latest version of macOS. Apple integrates Safari updates into system updates, so check System Settings > General > Software Update.
- Check Profiles (iOS): On iPhone/iPad, go to Settings > General > VPN & Device Management. If you see a "Configuration Profile" that you didn't install (often added by malicious calendars or websites), delete it immediately.
Frequently Asked Questions
Why am I still seeing pop-ups if the blocker is on?
Some websites use "overlays" rather than actual pop-up windows. These are elements built into the page itself, which Safari's pop-up blocker cannot stop because they aren't separate windows. These are best handled by a dedicated content blocker extension.
Can a pop-up actually infect my Mac or iPhone?
Simply seeing a pop-up is rarely dangerous. The danger occurs if you click a link within the pop-up and download a file, or if you enter your password or credit card information into a fake form presented by the pop-up.
What is the difference between a pop-up and a notification?
A pop-up is a new window that opens. A notification is a small banner that slides in from the corner of the screen. Notifications are controlled in the "Notifications" section of Safari settings, not the "Pop-up Windows" section.
Should I install a third-party ad blocker?
Safari's built-in blocker is effective for basic pop-ups, but a reputable content blocker from the App Store can provide more comprehensive protection against banners and tracking scripts.
How do I stop calendar pop-ups on my iPhone?
These are not Safari pop-ups but subscribed calendars. Go to Settings > Calendar > Accounts, find the suspicious subscribed calendar, and select "Delete Account."