How to Block Pop-Ups on Your Computer (Browser & System-Level)

Pop-ups range from mildly annoying to genuinely dangerous. Some are ads trying to grab your attention; others are phishing traps disguised as system alerts. Knowing how to block them — and understanding where they come from — puts you back in control of your browsing experience.

What Pop-Ups Actually Are (and Why the Source Matters)

Not all pop-ups are the same, and blocking them effectively depends on identifying where they originate.

Browser-based pop-ups are triggered by websites through JavaScript. These are the most common type — new windows or tabs that open when you click a link, load a page, or sometimes just hover over an element.

Notification pop-ups are permission-based. At some point, a website asked if it could send you notifications, and you clicked "Allow." These appear outside the browser window, often in the corner of your screen, and look like system alerts.

Ad overlays aren't true pop-ups in the technical sense — they're page elements that float over content — but they behave similarly and require a slightly different fix.

Malware-generated pop-ups appear even when your browser is closed. If you're seeing these, the problem isn't a browser setting — it's software installed on your machine.

Understanding which category you're dealing with determines which fix actually works.

How to Block Pop-Ups in Your Browser

Every major browser has a built-in pop-up blocker, but the settings differ slightly and the default protection level varies.

Google Chrome

Go to Settings → Privacy and Security → Site Settings → Pop-ups and redirects. Set it to "Don't allow sites to send pop-ups or use redirects." Chrome also lets you manage exceptions — useful if a legitimate site (like a banking portal) needs pop-ups to function.

Mozilla Firefox

Navigate to Settings → Privacy & Security, then scroll to the Permissions section. Check the box next to "Block pop-up windows." Firefox shows a notification bar when it blocks something, so you can unblock individual sites as needed.

Microsoft Edge

Go to Settings → Cookies and site permissions → Pop-ups and redirects and toggle the blocker on. Edge uses Chromium under the hood, so the interface is similar to Chrome.

Safari (macOS)

Open Safari → Settings (or Preferences) → Websites → Pop-up Windows. You can set behavior globally or configure it per-site — for example, allowing pop-ups on one domain while blocking them everywhere else.

What Built-In Blockers Don't Catch

Built-in browser blockers are solid for straightforward cases, but they don't block ad overlays, they won't stop sites from asking for notification permissions, and they do nothing for malware-generated pop-ups. That's where additional layers come in.

Blocking Notification Pop-Ups 🔔

These are increasingly common and often overlooked. The fix is in your browser's notification settings, not the pop-up blocker.

In Chrome: Settings → Privacy and Security → Site Settings → Notifications. Switch from "Sites can ask to send notifications" to "Don't allow sites to send notifications," or review and remove individual sites that already have permission.

In Firefox: Settings → Privacy & Security → Permissions → Notifications → Settings. You'll see a list of every site you've granted or denied.

In Edge: Settings → Cookies and site permissions → Notifications.

In Safari: Settings → Websites → Notifications.

Revoking notification permissions from sites you don't recognize is one of the fastest ways to stop pop-ups that appear outside your browser window.

System-Level Pop-Up Blocking (Windows & macOS)

If pop-ups appear when no browser is open, you're likely dealing with either:

  • Notification pop-ups from installed apps (Windows Action Center or macOS Notification Center)
  • Adware or malware

On Windows 11/10: Go to Settings → System → Notifications. You can disable notifications per-app or turn them off entirely. Focus Assist (now called "Do Not Disturb" in Windows 11) suppresses most pop-up alerts automatically during set hours.

On macOS: Go to System Settings → Notifications. Each app has individual settings for whether it can show banners, alerts, or badges.

For anything more aggressive — pop-ups appearing at random, fake virus warnings, or ads that open without any browser interaction — the issue is almost certainly adware. Running a reputable malware scanner is the appropriate next step, not a settings change.

Ad Blockers: A Separate (and Stronger) Layer

Browser extensions like uBlock Origin (available for Chrome, Firefox, and Edge) go further than built-in blockers. They filter content at the network request level, blocking ads, trackers, and many overlay-style pop-ups before they ever load.

ApproachWhat It BlocksRequires ExtensionWorks Outside Browser
Built-in browser blockerTrue pop-up windowsNoNo
Notification settingsPermission-based alertsNoYes (browser notifications)
Ad blocker extensionAds, overlays, trackersYesNo
Malware removalAdware-generated pop-upsNoYes

Ad blockers do come with trade-offs. Some websites detect them and restrict content until you disable the extension. Others break minor site functionality. How much that matters depends on which sites you use regularly.

The Variable That Changes Everything

The "right" approach to blocking pop-ups isn't universal — it depends on factors specific to your situation: which browser you use, whether pop-ups are appearing inside or outside the browser, whether you've ever granted notification permissions to unfamiliar sites, and whether the root cause is a setting or something installed on your system.

A casual user who just wants fewer interruptions while browsing needs a different solution than someone whose machine is actively showing pop-ups with no browser open. Those two problems look similar on the surface but have very different fixes — and mixing them up means the issue doesn't actually get resolved.