Pop-up ads on a laptop are one of the most annoying problems for users. Not only is it distracting from your work, but it can also contain malicious links, slow down your system, or even steal personal data. Most often, advertising appears in the browser, but sometimes its source is installed programs, viruses, or even operating system settings.

In this article we will look at all possible reasons pop-up windows will appear and offer 7 proven methods disabling them - from basic browser settings to deep system cleaning. We will pay special attention Windows 10/11, since it is on these OSes that most users encounter the problem. If you're tired of annoying banners that prevent you from browsing websites or working in documents, the following instructions will help you take back control of your device.

1. Disable pop-ups in your browser

The most common reason for advertising to appear is the settings of the browser itself. Modern reviewers (Google Chrome, Mozilla Firefox, Microsoft Edge, Opera) have built-in pop-up blocking tools, but sometimes they are disabled or do not work correctly. Let's look at how to configure protection in each of them.

B Google Chrome go to Settings → Privacy and Security → Site Settings → Pop-ups and redirects. The switch should be turned on here "Allowed (recommended)" - this means that the browser blocks most pop-ups. If it is disabled, enable it and add problematic sites to the exclusion list (if there are any).

  • 🔍 For Mozilla Firefox: Settings → Privacy and Security → Permissions → Pop-ups - Check the box next to "Block pop-ups".
  • 🛡️ B Microsoft Edge: Settings → Permissions → Pop-ups and redirects — turn on the lock.
  • ⚡ For Opera: Settings → Advanced → Privacy and Security → Content Settings → Pop-ups — activate the blocking.

If after these steps advertisements continue to appear, the problem may lie in browser extensions. Some plugins (especially those that promise to “speed up page loading” or “show discounts”) load ads themselves. Check the list of installed extensions and remove suspicious ones.

📊 Which browser do you use most often?
  • Google Chrome
  • Mozilla Firefox
  • Microsoft Edge
  • Opera
  • Safari
  • Other

2. Removing malware and adware

If pop-up ads appear even when the browser is closed, most likely your laptop has adware software (adware) - programs that display advertisements in exchange for “free” functions. Such software often penetrates the system along with pirated games, hacked programs, or under the guise of “useful utilities.”

To find and remove adware, use specialized utilities:

  • 🛡️ AdwCleaner (from Malwarebytes) is a free adware removal tool. Download it from official website, run a scan and remove all detected threats.
  • 🔍 HitmanPro is another powerful utility that finds even deeply hidden advertising modules. Available here.
  • 🧹 Built-in Windows Defender: open Settings → Update & Security → Windows Security → Virus & Threat Protection and run a full scan.

After removing the adware, be sure to restart your laptop — some advertising modules continue to run in the background until the system is restarted. If the problem persists, check the list of installed programs in Control Panel → Programs and Features and remove all suspicious applications (for example, SearchApp by Ask, Yontoo, Crossrider).

☑️ Checklist for removing adware

Done: 0 / 5

3. Configure the firewall and host file

Sometimes pop-up ads appear due to malware changing network settings or host file Windows. The host file is a system file that maps domain names to IP addresses. If ad server entries are added to it, the browser will redirect you to them even when entering regular addresses.

To check the host file:

  1. Open Notepad as administrator (right-click on the icon and select "Run as administrator").
  2. From the notepad menu, select File → Open and follow the path C:\Windows\System32\drivers\etc\.
  3. Select file hosts (make sure the Files of Type field is set to All Files).
  4. Remove all lines except the standard ones (they start with the character #). Save the file.

It is also recommended to configure Windows firewallto block suspicious connections:

  1. Go to Control Panel → Windows Firewall → Advanced Settings.
  2. In the section Rules for outgoing connection create a new rule to block connections to known advertising domains (for example, doubleclick.net, googlesyndication.com).
How to restore the default host file?

If you accidentally deleted all the lines from the hosts file, copy the following text into it:

# Copyright (c) 1993-2009 Microsoft Corp.

#

# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.

#

# space.

#

# lines or following the machine name denoted by a '#' symbol.

#

# For example:

#

# 127.0.0.1 localhost

# ::1 localhost

4. Ad blocking at the router level

If ads appear on all devices connected to your network, the problem may be in the settings router. Some ISPs embed advertising directly into traffic, and attackers can redirect requests to ad servers via DNS. The solution is to change DNS servers to reliable ones, for example, from Google or Cloudflare.

Instructions for changing DNS on the router:

  1. Open your router control panel (usually at 192.168.0.1 or 192.168.1.1, login and password are indicated on the device sticker).
  2. Find a section WAN or Internet.
  3. In the field DNS server enter:
    • 🔹 For Google DNS: 8.8.8.8 And 8.8.4.4
    • 🔹 For Cloudflare DNS: 1.1.1.1 And 1.0.0.1
  • Save the settings and reboot the router.
  • Additionally you can use Pi-hole - software that blocks advertising at the network level. It requires the presence Raspberry Pi or other mini-PC, but completely eliminates advertising on all devices in the home. Alternative - routers with support AdGuard Home (for example, models from ASUS with firmware Asuswrt-Merlin).

    💡

    If after changing the DNS the advertisement still appears, try using a VPN (for example, ProtonVPN or Windscribe). Many VPN services have built-in ad blocking.

    5. Cleaning startup and task scheduler

    Pop-up ads may launch automatically when you turn on your laptop if malware is added to startup or task scheduler. Check these sections and remove any suspicious items.

    To clear startup:

    1. Click Ctrl + Shift + Escto open Task Manager.
    2. Go to the tab Autoload.
    3. Sort programs by column Impact on launch and disable those that are unknown to you or have high impact.

    To check the task scheduler:

    1. Open Start → System Tools → Task Scheduler.
    2. In the section Task Scheduler Library look for tasks with suspicious names (for example, UpdateService, SystemOptimizer).
    3. Right-click the task and select Delete.

    Pay special attention to tasks that are launched on behalf of the user SYSTEM or Administrator — they are often created by advertising programs to disguise them.

    6. Using antiviruses with ad protection

    Some antivirus programs have built-in modules to block ads and phishing. For example, Kaspersky Internet Security, ESET NOD32 And Bitdefender are able to filter malicious and advertising sites at the network level. Let's look at how to enable this feature in popular antiviruses.

    Antivirus Path to settings What to include
    Kaspersky Settings → Protection → Web Antivirus Enable "Block dangerous and phishing links" and "Anti-banner"
    ESET NOD32 Advanced → Web and email → Internet access protection Activate "URL Filtering" and add advertising domains to the blacklist
    Bitdefender Protection → Web protection → Settings Enable "Block Phishing" and "Fraud Protection"
    Avast Security → Main Screens → Screen Settings Activate "Malicious URL Blocking" and "Phishing Protection"

    If you don’t want to install a heavy antivirus, you can use lightweight alternatives with ad blocking functionality:

    • 🛡️ AdGuard — specialized software for blocking ads at the system level. Works with all browsers and programs.
    • 🔒 uBlock Origin is a browser extension that blocks ads more effectively than built-in tools.
    💡

    Antiviruses with a web protection module not only block ads, but also prevent new ad viruses from infecting your laptop.

    7. Reset browser and system settings

    If none of the previous methods helped, your browser or operating system settings may be seriously damaged. In this case it will help factory reset. Let's start with the browser - this is a less radical step than reinstalling Windows.

    To reset your browser:

    • 🔄 B Google Chrome: Settings → Reset settings → Restore settings to original.
    • 🔄 B Mozilla Firefox: Help → Troubleshooting → Clean Firefox.
    • 🔄 B Microsoft Edge: Settings → Reset settings → Restore original settings.

    If the problem is not in the browser, but in the system, you can try Windows recovery without data loss:

    1. Open Settings → Update & Security → Recovery.
    2. In the section Restore your computer to its original state select Save my files.
    3. Follow the instructions on the screen. The process will take 30–60 minutes.

    ⚠️ Attention: Resetting Windows will remove all installed programs but keep personal files. After the procedure, you will have to reconfigure the system and reinstall the necessary software. If you have important data on your laptop, make a backup copy to an external drive first.

    FAQ: Frequently asked questions about pop-up advertising

    Why do ads still appear after adware is removed?

    The adware is probably hidden deeper than it seems. Check:

    • 📁 Folders AppData\Roaming And AppData\Local (hidden folders in the user profile).
    • 🔄 Task scheduler to detect hidden tasks.
    • 🖥️ Windows Registry (look for entries with suspicious names in HKEY_CURRENT_USER\Software\).

    If you are not sure of your actions, use Malwarebytes Anti-Malware for deep scanning.

    Is it possible to disable advertising in pirated programs?

    Yes, but this violates the terms of use for such software. Most hacked programs contain built-in advertising modules that are difficult to remove without the risk of breaking the software. Alternatives:

    • 🔍 Use legal analogues (for example, LibreOffice instead of pirated Microsoft Office).
    • 🛡️ Block advertising domains via host file or Pi-hole.
    Why do ads appear even on safe sites?

    This may be due to:

    • 📡 DNS substitution by your provider (solved by changing DNS to 1.1.1.1 or 8.8.8.8).
    • 🔗 By introducing advertising through browser extensions (check the plugins).
    • 🖥️ A virus that modifies traffic (a full antivirus scan is required).
    How to block ads on YouTube?

    To block ads on YouTube:

    • 🛡️ Install the extension uBlock Origin and add a filter ||youtube.com/get_video_info*.
    • 🎥 Use alternative clients, e.g. FreeTube (blocks all advertising and tracking).
    • 🔄 Turn it on YouTube Premium (paid, but legal and without advertising).

    ⚠️ Attention: Blocking ads on YouTube may violate the service's rules. An account could theoretically be blocked for using adblocks, although in practice this happens extremely rarely.

    What should I do if ads open in new tabs?

    This is typical behavior browser hackers (browser hijackers). Actions:

    1. Remove all unknown extensions from your browser.
    2. Reset your browser settings to factory defaults.
    3. Check your laptop for viruses using Kaspersky Virus Removal Tool.
    4. If the problem persists, reinstall your browser or use a portable version (for example, Chrome Portable).