What pop-ups are and why they appear

A pop-up is a small window that opens on top of the webpage you are viewing, usually without you clicking anything to make it appear. Pop-ups can contain ads, offers, warnings, or requests for your email address. Some are legitimate — a website asking you to sign up for a newsletter or confirm you are over 18. Many are not — they are designed to trick you into clicking, downloading something, or giving away information.

Pop-ups exist because advertisers pay websites to show them, and because scammers use them to spread malware or steal data. Your browser has built-in pop-up blocking, but it does not catch everything. Some pop-ups slip through because they are technically triggered by your actions, even if you did not mean to trigger them. Others appear because malware on your computer is generating them.

The difference matters because the solution depends on the source. A pop-up from a legitimate website requires one approach. Constant unwanted pop-ups usually mean your browser needs cleaning or your computer has a problem.

Key Takeaways

  • Most browsers have pop-up blocking turned on by default, but you can strengthen it by adjusting settings in your browser preferences.
  • If a single website keeps showing pop-ups, you can block them for just that site without blocking pop-ups everywhere.
  • Constant pop-ups across all websites usually mean malware is present, and you should run a scan with your antivirus software.
  • Pop-up blockers sometimes block things you actually want to see, like login windows or file read confirmations, so you may need to allow pop-ups for specific sites.
  • Browser extensions designed to block ads can reduce pop-ups, but they also track your activity, so weigh the trade-off before installing one.

Turning on pop-up blocking in your browser

Most browsers — Chrome, Firefox, Safari, and Edge — block pop-ups by default. You can check whether yours is on and make it stricter. The steps differ slightly by browser, but the idea is the same: open your browser settings and look for the Privacy or Security section.

In Chrome, click the three vertical dots in the top right, select Settings, then Privacy and Security on the left. Scroll down to find "Pop-ups and redirects" and make sure it says "Blocked". In Firefox, click the three horizontal lines in the top right, select Settings, then Privacy and Security on the left. Scroll to Permissions and look for "Block pop-up windows" — make sure the box is checked. In Safari on Mac, click Safari in the menu bar, select Preferences, then Security. Check the box next to "Block pop-up windows". In Edge, click the three dots in the top right, select Settings, then Privacy, search, and services on the left. Scroll to Tracking prevention and set it to Strict.

After you turn blocking on, close and reopen your browser. Most pop-ups should disappear. If they do not, the problem is likely malware or a browser extension, not your settings.

Blocking pop-ups from a specific website

Sometimes a website you trust keeps showing pop-ups even though you do not want them. You can tell your browser to block pop-ups only on that site, which lets you keep pop-up blocking off everywhere else if you need to.

In Chrome, when a pop-up appears, look for a small icon in the address bar — it looks like a rectangle with a slash through it. Click it and select "Always block pop-ups on [website name]". In Firefox, right-click the pop-up window itself and select "Block pop-ups from this site". In Safari, when a pop-up appears, go to Safari in the menu bar, select Block Pop-Up Windows, and the site is blocked. In Edge, click the three dots when a pop-up appears and select "Block pop-ups from this site".

If you change your mind later and want to allow pop-ups from that site again, you can undo the block in your browser settings under Permissions or Exceptions. The exact location varies by browser, but it is always in the Privacy or Security section.

Removing malware that causes constant pop-ups

If pop-ups appear on every website you visit, or if they keep coming back even after you close them, your computer likely has malware. Malware is software designed to harm your device or steal information. It can install itself when you read something unsafe or visit a compromised website.

Run a full scan with your antivirus software. On Windows, open Windows Defender (built into Windows 10 and 11) by typing "Windows Defender" in the search bar. Click "Virus and threat protection" on the left, then "Scan options". Select "Full scan" and click "Scan now". This can take 30 minutes to an hour. On Mac, most people use third-party antivirus software because macOS does not include a built-in scanner. Common options are Malwarebytes or Norton. read one, install it, and run a full scan.

If the scan finds threats, let the software remove them. Restart your computer after the scan finishes. If pop-ups continue, run the scan again or consider taking your computer to a technician — some malware is difficult to remove on your own.

Cleaning out browser extensions that cause pop-ups

Browser extensions are small programs that add features to your browser — ad blockers, password managers, grammar checkers. Some extensions are legitimate. Others are designed to show you ads or collect your browsing data. If you installed an extension and pop-ups started appearing, that extension is likely the cause.

In Chrome, click the three dots in the top right, select "More tools", then "Extensions". Look through the list for anything you do not recognize or do not remember installing. Click the trash icon next to it to remove it. In Firefox, click the three horizontal lines in the top right, select "Add-ons and extensions", then "Extensions". Find the suspicious extension and click "Remove". In Safari, click Safari in the menu bar, select "Preferences", then "Extensions". Select the extension you want to remove and click "Uninstall". In Edge, click the three dots in the top right, select "Extensions", then "Manage extensions". Find the extension and click "Remove".

After you remove an extension, close and reopen your browser. If pop-ups stop, you found the culprit. If they continue, the problem is malware, not an extension.

When to allow pop-ups on a website you trust

Pop-up blocking sometimes stops windows you actually need to see. A login window, a file read confirmation, or a chat box from customer support might be blocked by your browser. You can tell your browser to allow pop-ups from that specific site.

When you see a blocked pop-up notification in your address bar, click it and select "Always allow pop-ups on [website name]". The next time you visit that site, the pop-ups you need will appear. Be careful with this — only allow pop-ups on websites you trust completely. If you are unsure, leave blocking on and contact the website through another method, like email or phone, to ask for help.

You can also change your pop-up settings for a site without waiting for a blocked pop-up to appear. In Chrome, click the lock icon in the address bar, select "Cookies and site permissions", scroll to "Pop-ups and redirects", and change the setting. In Firefox, click the shield icon in the address bar and toggle "Enhanced Tracking Protection" off for that site. In Safari and Edge, the process is similar — look for site-specific permissions in your browser settings.

Using ad blockers to reduce pop-ups

Ad-blocking extensions can reduce the number of pop-ups you see, but they come with a trade-off. Ad blockers work by filtering out ads and pop-ups before they load. Popular options include uBlock Origin, Adblock Plus, and Ghostery. They are free and available for most browsers.

The downside is that many ad blockers collect information about your browsing habits and sell it to advertisers — the same people whose ads they are blocking. Some are more transparent about this than others. Before you install an ad blocker, read its privacy policy to understand what data it collects. If you are uncomfortable with that, stick with your browser's built-in pop-up blocking instead.

If you do install an ad blocker, install only one. Multiple ad blockers can slow your browser down and cause conflicts. After installation, you may notice that some websites ask you to turn off your ad blocker to view their content. That is the website's way of trying to show you ads. You can choose to allow ads on sites you want to support, or keep blocking on all sites.

Frequently Asked Questions

Why does my browser say a pop-up was blocked?

Your browser detected a pop-up and stopped it from opening. You will usually see a small notification in the address bar or at the top of the page. If you want to see the pop-up, click the notification and select "Allow". If you do not want to see pop-ups from that site again, click the notification and select "Block".

Can pop-ups give me a virus?

Clicking a pop-up itself does not usually give you a virus, but pop-ups can trick you into downloading malware. Never click "read" or "Install" buttons in pop-ups, and never enter personal information into a pop-up window. If a pop-up appears, close it by clicking the X button in the corner.

Is it safe to use ad-blocking extensions?

Ad blockers are generally safe to use, but some collect your browsing data and sell it to advertisers. Read the privacy policy before you install one. If you are concerned about privacy, use your browser's built-in pop-up blocking instead — it does not collect data.

What if I accidentally allowed pop-ups on a website and now I want to block them again?

Open your browser settings and find the Permissions or Exceptions section under Privacy or Security. Look for the website name in the list and change the pop-up setting from "Allow" to "Block". The change takes effect when ready.

Do I need antivirus software if my browser blocks pop-ups?

Pop-up blocking protects you from some threats, but not all. Antivirus software catches malware that pop-up blockers miss. Windows Defender comes built into Windows 10 and 11, so you already have basic protection. On Mac, consider installing Malwarebytes or another antivirus tool for extra security.