User Agents

Web browsers and everyday web tech, explained

Stop Malicious Pop-Ups in Firefox: Full Guide

· 5 min read · Settings and Privacy

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Malicious pop-ups in Firefox are usually caused by a hijacked browser setting, a rogue extension, or a site that keeps opening new tabs. This guide walks you through removing the source and locking down Firefox so unwanted pop-ups stop. You will need about 10 minutes and access to Firefox's settings.

What You'll Need

  • Firefox installed and open.
  • Administrator rights on your computer (to remove extensions and clear data).
  • Your Firefox password if you use a primary password (for clearing saved data).

Step-by-Step

  1. Close all suspicious tabs and windows. Do not click inside any pop-up. Use Ctrl+Shift+W (Windows/Linux) or Cmd+Shift+W (Mac) to close the entire window, or Ctrl+W / Cmd+W to close one tab at a time.
  2. Check and remove suspicious extensions. Click the menu button (three horizontal lines) at the top-right, then select Add-ons and themes. Go to Extensions. Look for anything you don't recognize or didn't install. Click the three-dot menu next to it and choose Remove. Restart Firefox after removing.
  3. Reset your homepage and search engine. Go to Settings (menu > Settings). Under Home, set Homepage and new windows to Firefox Home (Default). Under Search, choose your preferred search engine (e.g., Google or DuckDuckGo) from the drop-down.
  4. Clear site data and cookies. In Settings, go to Privacy & Security. Under Cookies and Site Data, click Clear Data.... Check both boxes (Cookies and Site Data, and Cached Web Content) and click Clear. This removes any scripts that might be storing pop-up triggers.
  5. Enable Firefox's built-in pop-up blocker. In Settings > Privacy & Security, scroll to Permissions. Make sure Block pop-up windows is checked. Also, check Warn you when websites try to install add-ons.
  6. Check for notifications that open pop-ups. In Settings > Privacy & Security, under Permissions, click Settings next to Notifications. Review the list and set any suspicious sites to Block or remove them entirely.
  7. Refresh Firefox. If pop-ups persist, go to Settings > General and scroll to Firefox Updates. Click Refresh Firefox... and confirm. This resets the browser to its default state while keeping your bookmarks and passwords (it removes extensions and custom settings).
  8. Scan your computer for malware. If pop-ups still appear after refreshing, the issue may be outside Firefox. Run a full scan with your antivirus or a trusted malware scanner. Some adware installs browser helpers that survive a browser reset.

Common Mistakes

  • Clicking on the pop-up's “Close” or “Cancel” button. Malicious pop-ups often use fake buttons that trigger more pop-ups. Instead, close the entire tab or window using keyboard shortcuts.
  • Only removing the extension and not resetting settings. A hijacker may change your homepage and search engine. You must reset those separately.
  • Ignoring the notification permission list. Some sites use browser notifications to display pop-up-like messages even when the tab is closed. Block them in the notifications settings.
  • Skipping the malware scan. If the pop-ups return after a refresh, the source is likely malware on your system, not Firefox itself.

Tips

  • Use Firefox Multi-Account Containers or a similar extension to isolate suspicious sites.
  • Keep Firefox updated. Updates often include security fixes that block new pop-up techniques.
  • Be cautious when installing free software; deselect any “offers” for toolbars or add-ons.
  • Use a dedicated ad-blocker like uBlock Origin. It can stop many malicious pop-ups before they appear.
  • Regularly review your extensions list and remove anything you don't use.

Troubleshooting

Pop-ups still appear after removing extensions and clearing data. Try starting Firefox in Troubleshoot Mode (menu > Help > Troubleshoot Mode). If pop-ups stop, the cause is an extension or a custom setting. Re-enable extensions one by one to find the culprit.

Pop-ups appear even in Troubleshoot Mode. This suggests a system-level infection. Run a full antivirus scan and consider using a dedicated malware removal tool. You may also need to check your browser's shortcut for malicious “-url” arguments (right-click the Firefox shortcut, go to Properties, and look at the Target field).

Firefox keeps redirecting to unknown pages. This is often a sign of a hijacked DNS or proxy setting. In Settings > General, scroll to Network Settings and click Settings. Choose No proxy or Use system proxy settings. If that doesn't help, reset your router and check your hosts file for suspicious entries.

Pop-ups only happen on certain websites. Those sites may be using aggressive ads. Enable the pop-up blocker and consider installing an ad-blocker. Also, clear the site's data (cookies and storage) to remove any scripts that remember your session.

Frequently Asked Questions

Why do I get pop-ups even with the pop-up blocker on?

The built-in blocker only stops traditional pop-up windows. Some sites use in-page overlays or redirects that aren't blocked. Extensions like uBlock Origin can handle these better.

Can a malicious pop-up install malware without me clicking?

Generally, no. Modern browsers require user interaction (like clicking “Allow” or downloading a file) to install software. However, some drive-by downloads exploit browser vulnerabilities, so keeping Firefox updated is crucial.

Will refreshing Firefox delete my passwords and bookmarks?

No. Refresh keeps your bookmarks, history, and passwords. It removes extensions and resets settings like homepage and search engine.

How do I know if an extension is malicious?

Look for extensions you didn't install, ones with poor ratings, or ones that request excessive permissions (like “Access your data for all websites”). If in doubt, remove it.

Can pop-ups come from other programs, not Firefox?

Yes. Some adware runs outside the browser and can open pop-ups even when Firefox is closed. Check your system's startup programs and run a malware scan.

What should I do if a pop-up says my computer is infected?

Do not call any phone number or click any button. Close the tab immediately. Run a real antivirus scan, but ignore the pop-up's claims—it's a scam.