Short answer: To remove pop-up ads from Safari, first turn on Block Pop-ups: on iPhone and iPad go to Settings, then Safari, and switch it on; on a Mac open Safari, then Settings, then the Websites tab, and block pop-ups for all sites. Turn on Fraudulent Website Warning in the same places. If a scam page is already on screen, do not tap anything inside it; type a new address in the search field or close the tab. If pop-ups keep returning, clear website data, review Safari extensions and, on a Mac, check for adware apps in the Applications folder. Ads that appear inside a page you are reading are normal advertising, not infection.
Figure out which kind of pop-up you have
Safari pop-ups come from a handful of sources, and the fix depends on which one you are dealing with. Spend a minute identifying it before changing settings.

| What you see | Likely cause | Where to fix it |
|---|---|---|
| New windows or tabs opening when you tap a page | Pop-up or redirect from that site | Block Pop-ups setting |
| A full-screen virus or prize alert that will not close | Scam web page | Leave the page, clear website data |
| Alerts in Notification Center on a Mac | Website notification permission | Safari Settings, Websites, Notifications |
| Ads injected into every site, homepage changed | Extension or adware | Safari Extensions, Applications folder |
| Junk events in your iPhone calendar | Calendar subscription | Calendar settings |
Step 1: Turn on Safari’s built-in protection
iPhone and iPad
Open Settings, then Safari. Switch on Block Pop-ups, and switch on Fraudulent Website Warning. Apple’s support guidance lists both as the first line of defense. The fraud warning shows a full-screen alert if you try to open a page that is known to be deceptive.
Mac
Open Safari, choose Safari, then Settings. In the Websites tab, select Pop-up Windows and set the default for other websites to Block or Block and Notify. In the Security tab, turn on the warning for fraudulent websites. Block and Notify is useful because it shows a small icon in the address bar when a pop-up is stopped, so you can allow it for a site that genuinely needs one, such as a bank’s statement viewer.
Step 2: Close a scam pop-up safely
Many scam pop-ups have fake close buttons or say your iPhone is infected and you must tap OK. Apple advises not to interact with pop-ups unless you are sure they are legitimate. Instead:
- iPhone or iPad: tap the address field, or the top of the screen if it is hidden, and type a new address or search term. Then close the tab from the tab overview.
- Mac: quit Safari, then hold the Shift key while reopening it so Safari does not restore the previous windows and tabs.
Do not call any phone number shown, install any profile or app it recommends, or enter your Apple Account password. A web page cannot scan your iPhone; our explainer on Your Phone Is Infected pop-ups explains why.
Step 3: Clear the website data that brings it back
Some scam pages leave data that reopens them, or they sit in an open tab that Safari reloads. On iPhone, go to Settings, then Safari, then Clear History and Website Data, or remove only the suspicious site’s data under Advanced, then Website Data. On a Mac, in Safari Settings, open Privacy and choose Manage Website Data to remove specific sites. Close all tabs you do not recognize afterwards.
Step 4: Revoke website notifications on a Mac
If alerts appear in the corner of your Mac screen even when Safari is not in front, a site probably has permission to send notifications. In Safari Settings, open Websites, then Notifications, and set any unfamiliar site to Deny or remove it. Turn off Allow websites to ask for permission to send notifications if you never use them. This is the Safari version of the notification spam problem that also affects Chrome and Edge.

Step 5: Check extensions
Extensions can inject ads into every page or change your search engine. On a Mac, Apple recommends opening the Extensions tab in Safari Settings and turning off anything unnecessary. On iPhone and iPad, go to Settings, then Safari, then Extensions, and remove any you did not install on purpose or no longer use. Pay attention to vague names such as search helpers, coupon finders or video downloaders that ask for access to all websites.
Step 6: Look for adware on a Mac
If pop-ups persist after the steps above, Apple says you may have installed adware or other unwanted software. Update to the latest version of macOS, and restart even if you are already up to date, because macOS includes a built-in tool that removes known malware on restart. Then open the Applications folder and uninstall apps you do not recognize. Check System Settings for login items and background items you did not add.
If your homepage or search engine has been changed, or a device management profile appeared that you did not install, the problem is a browser hijacker rather than simple pop-ups. Our guide to removing a Safari hijacker on a Mac covers profiles and login items in depth.
What about iPhone specifically?
Real adware on an iPhone is rare, because iOS apps cannot inject ads into Safari or other apps. Persistent pop-ups on iPhone usually come from a tab left open, website data, a Safari extension, a malicious configuration profile, or calendar spam. Check Settings, then General, then VPN and Device Management for profiles you did not install; our guide to malicious iPhone configuration profiles explains how to remove them safely. For junk calendar events, see our article on iPhone calendar spam.
Keep pop-ups from returning
Install software updates on every Apple device, since Apple notes many include security fixes and pop-up improvements. On a Mac, get apps from the App Store or directly from the developer, never from an ad or a page telling you your player or browser is out of date. Be suspicious of any site that asks you to allow notifications to continue. If the problem continues despite everything, Apple suggests contacting Apple Support.
Frequently asked questions
Does Block Pop-ups stop all ads in Safari?
No. It stops new windows from opening. Ads built into a page are part of that site and are not affected. Content blockers from the App Store can reduce those.
Is my iPhone infected if I see a virus warning in Safari?
Almost certainly not. It is a web page designed to scare you. Leave the page, clear its data and do not call numbers or install anything it suggests.
Why do pop-ups come back after I close them?
An open tab, saved website data, a notification permission on a Mac or an extension can bring them back. Work through the steps above in order.
Should I install a cleaner app?
On iPhone, cleaner apps cannot remove anything that iOS settings cannot. On a Mac, use macOS’s built-in protection and remove unfamiliar apps first.



