What pop-up ads are and why they appear
Pop-up ads are windows that open on top of the webpage you're viewing, usually without you clicking anything to make them appear. They're separate from the page itself — they float over it, often with a close button in the corner. Some pop-ups are legitimate (a website asking you to sign up for a newsletter), but most are ads placed by third-party companies trying to sell you something or collect your information.
Websites show pop-ups because advertisers pay them to do it. The more pop-ups that appear, the more money the website makes. This is why some sites are worse than others — they've decided that the money from pop-ups matters more than whether visitors find the experience annoying.
Pop-ups also appear because your browser stores information about where you've been online. If you looked at running shoes on one website, ads for running shoes follow you to other sites in the form of pop-ups. This is called retargeting, and it happens because advertisers buy space on many different websites.
Key Takeaways
- Most pop-ups can be closed by clicking the X button, usually in the top right corner of the pop-up window itself, not the page behind it.
- Browser extensions like uBlock Origin, Adblock Plus, and Ghostery block most pop-ups before they load, though some websites detect them and ask you to turn them off.
- Your browser's built-in pop-up blocker is turned on by default in Chrome, Firefox, Safari, and Edge, but it only stops some types of pop-ups — not all.
- Clearing your browser cookies and cache reduces retargeting ads, though advertisers use other methods to track you that cookies alone won't stop.
- Some pop-ups are scams designed to look like system warnings; closing them without clicking anything inside them is the safest approach.
Using your browser's built-in pop-up blocker
Every major browser — Chrome, Firefox, Safari, and Edge — has a pop-up blocker turned on by default. This blocks many pop-ups automatically, but not all of them. Some pop-ups are created in ways that slip past the basic blocker, and some websites deliberately code their pop-ups to avoid being blocked.
To check that your pop-up blocker is on in Chrome, click the three vertical dots in the top right, select Settings, then Privacy and Security, then Site Settings. Look for Pop-ups and redirects and make sure it says Blocked. In Firefox, go to Settings, Privacy & Security, and scroll down to Permissions — Pop-ups should be checked. In Safari, go to Safari menu, Settings, Security, and make sure Block pop-up windows is checked. In Edge, click the three dots, Settings, Privacy, and look for Pop-ups and redirects.
If your blocker is already on and you're still seeing pop-ups, you need a stronger tool. The built-in blocker is a baseline, not a complete solution.
Installing a browser extension to block ads and pop-ups
Browser extensions are small programs that add features to your browser. Several extensions specialize in blocking pop-ups and ads before they load. The most common ones are uBlock Origin (free), Adblock Plus (free), and Ghostery (free with a paid version). These work by maintaining lists of known ad servers and blocking requests to those servers before your browser even loads them.
To install an extension in Chrome, go to the Chrome Web Store, search for the extension name, and click Add to Chrome. In Firefox, go to the Firefox Add-ons page, search for it, and click Add to Firefox. In Safari, you have fewer options — Safari extensions are more limited, but you can check the App Store for ad blockers designed for Safari. Edge uses the same extensions as Chrome, so you can visit the Edge Add-ons store.
After you install an extension, it works in the background. You may see a small icon in your toolbar showing how many ads or trackers it blocked on the current page. Some websites detect ad blockers and ask you to turn them off or whitelist the site — you can choose to do this for sites you trust, or you can leave the blocker on and straightforward not visit that site.
Closing pop-ups safely without clicking inside them
When a pop-up appears, your instinct might be to click the first button you see, but that's often what the pop-up wants you to do. Many pop-ups have a close button (usually an X) in the top right corner of the pop-up window itself. Click that, not any button inside the pop-up.
If you can't find an X button, look for a small close icon or try pressing the Escape key on your keyboard — this closes many pop-ups. If neither works, close the entire browser tab and open a new one. This is safer than clicking buttons inside a pop-up you don't recognize.
Be especially careful with pop-ups that look like system warnings — ones that say your device has a virus, your software is out of date, or you've won a prize. These are almost always scams. Real warnings from your operating system don't appear in pop-ups; they appear in your system settings or as notifications from your actual antivirus software. If you see one of these fake warnings, close the tab when ready without clicking anything inside the pop-up.
Clearing cookies and cache to reduce retargeting ads
Websites and advertisers use cookies — small files stored on your computer — to remember what you've looked at online. When you visit a shoe store's website, a cookie records that visit. Later, when you visit a news site, advertisers use that cookie to show you shoe ads. Clearing your cookies removes these tracking files and reduces retargeting ads.
In Chrome, click the three dots, Settings, Privacy and Security, Clear browsing data. Make sure Cookies and other site data is checked, set the time range to All time, and click Clear data. In Firefox, go to Settings, Privacy & Security, scroll to Cookies and Site Data, and click Clear Data. In Safari, go to Safari menu, Settings, Privacy, and click Manage Website Data, then Remove All. In Edge, click the three dots, Settings, Privacy, Clear browsing data.
Keep in mind that clearing cookies also logs you out of websites where you were signed in. You'll need to sign back in to email, social media, and other accounts. Also, clearing cookies is a temporary fix — advertisers will start collecting new cookies as soon as you browse again. For longer-term protection, consider using your browser's private or incognito mode, which doesn't store cookies after you close it.
Adjusting privacy settings to limit tracking
Beyond blocking pop-ups, you can reduce the ads you see by limiting how much information websites collect about you. Most browsers now have a Do Not Track setting or a privacy mode that tells websites not to track your activity.
In Chrome, go to Settings, Privacy and Security, and look for Cookies and other site data — you can choose to block third-party cookies, which are the ones advertisers use most. In Firefox, go to Settings, Privacy & Security, and under Enhanced Tracking Protection, select Strict. In Safari, go to Settings, Privacy, and check Prevent cross-site tracking. In Edge, go to Settings, Privacy, and set Tracking prevention to Strict.
These settings won't eliminate all ads, but they make it harder for advertisers to follow you across websites and show you retargeting pop-ups. Some websites may load more slowly or not work correctly with strict privacy settings, so you can adjust them per-site if needed.
What to do if a website won't let you use it with an ad blocker
Some websites detect that you're using an ad blocker and either block you from viewing content or ask you to turn it off. You have a few options. The simplest is to whitelist that website in your ad blocker — most extensions have a button in the toolbar that lets you disable blocking on the current site. You can also temporarily turn off the extension entirely, reload the page, and turn it back on when you're done.
If you don't want to whitelist a site, you can use your browser's private or incognito mode, which often bypasses ad blocker detection because it doesn't store the extension data the same way. Open a new private window, visit the website, and the ad blocker may not be active. Alternatively, you can straightforward choose not to visit that website — many sites that aggressively block ad blocker users are low-quality anyway.
If you decide to whitelist a site, you're choosing to see its ads in exchange for access. That's a fair trade if the site has content you value. Just be aware that you'll see more pop-ups and ads on that site than you would with the blocker on.
Frequently Asked Questions
Is it safe to use ad blocker extensions?
Yes, the major extensions like uBlock Origin, Adblock Plus, and Ghostery are safe and widely used. They're open-source (meaning anyone can inspect the code) and don't collect your data. Install them only from official sources — the Chrome Web Store, Firefox Add-ons, or the Edge Add-ons store — not from random websites.
Why do some pop-ups still appear even with a blocker on?
Some pop-ups are created by the website itself using code that blockers can't always catch. Others come from malware or unwanted browser extensions you've installed. If pop-ups persist after installing a blocker, run a malware scan using Windows Defender (Windows) or Malwarebytes, and check your browser extensions to remove any you don't recognize.
Will clearing cookies log me out of everything?
Yes, clearing all cookies will log you out of most websites. You can choose to keep cookies for specific sites you trust by using your browser's settings to clear cookies selectively, or you can straightforward sign back in after clearing. Most browsers remember your passwords, so signing back in is usually quick.
What's the difference between a pop-up and a pop-under?
A pop-under is an ad window that opens behind your current browser window instead of on top of it. You don't see it until you close or minimize your current window. Pop-unders are blocked by the same tools that block pop-ups, so you don't need to do anything different to stop them.
Can I block pop-ups on my phone?
Yes. On iPhone, open Safari Settings, scroll to Privacy, and turn on Prevent Cross-Site Tracking. On Android, open Chrome, tap the three dots, Settings, Privacy, and turn on Do Not Track. You can also install Firefox on Android and use ad blocker extensions designed for mobile Firefox, though options are more limited than on desktop.