Fake virus alerts on Windows 11: where they come from and how to switch them off

A virus warning pops up at the bottom right, with a red shield and a countdown. But Windows is not reporting anything: the warning comes from a website. How to recognise it, switch it off and never get it in the first place.

Comic: at the desk at the end of the blue-lit data center corridor the man in the white T-shirt sits in front of a laptop; in front of the screen a red warning window with a skull, a countdown and the text "VIRUS ALERT?" hangs on a fishing line with a hook like bait, and he calmly pushes it away with his hand; next to him a small blue shield figure holds up a red stop sign

🌐 Also available in: Deutsch · Français · Español · Italiano · Português · Nederlands · Polski

In short: A message like “Your PC is infected with 5 viruses – scan now” appears at the bottom right of Windows 11, often with a red shield, the logo of a well-known antivirus and a countdown. Almost always this is not a virus and not a message from Windows, but a push notification from a website that you once allowed with “Allow”. It can be switched off in two minutes. And with uBlock Origin you do not end up there in the first place.

Table of Contents

🕵️ Where the messages come from

Browsers can allow websites to send notifications, even when the site is no longer open. This is meant for news, calendars or chats. Dubious sites abuse it. Typical are boxes like “Click Allow to confirm that you are not a robot” or “Allow to play the video”. Whoever clicks there has allowed the site to send them messages at any time.

These messages then land in the Windows 11 notification area and look like system warnings. Whoever clicks on them ends up on a page that wants to sell an antivirus subscription someone earns a commission on, or worse: on a page that grabs payment details or offers something to download.

👍 The technology itself is not the problem

Browser notifications are useful in themselves. My Nextcloud uses them exactly as intended: the web interface asks once whether it may show messages, and then reports new shares, comments on files or messages in Talk. The difference from the fake alerts: I gave the permission on purpose, I know the sender, and a click leads to my own server. For the sync programs on PC and phone, Nextcloud goes one step further: a small push service (notify_push) tells them about changes right away, instead of letting them ask every few seconds. How this is set up on my servers is described in Deep Dive: Nextcloud on K3s – PHP Pods, Host Databases, and Office in the Browser. If you want to understand what a website may and may not do with notifications, the basics are in the Notifications API documentation on MDN.

The takeaway: do not switch off all notifications, only the ones you do not know. Sites you trust, such as your own Nextcloud, can be allowed on purpose.

🔎 Real or fake? How to tell

  • Look at the sender: below or above a fake message you see the name of the browser, so “Google Chrome”, “Microsoft Edge” or “Firefox”, and usually a web address. Real warnings from Windows come from “Windows Security”.
  • Pressure and countdown: real antivirus programs do not count down and do not threaten with a “last chance”.
  • Foreign brands: a McAfee or Norton logo on a computer where that program is not even installed is a sure sign.
  • When in doubt: do not click the message, but open Windows Security yourself from the Start menu. It shows whether something was really found.

🧹 Switching them off in the browser

This is the actual fix, because that is where the permission lives.

Google Chrome: Settings → Privacy and security → Site settings → Notifications. Under “Allowed to send notifications”, remove every unknown site via the three dots or set it to “Block”. At the top you can decide that sites may not ask at all any more.

Microsoft Edge: Settings → Cookies and site permissions → Notifications. Under “Allow”, remove all unknown sites. The “Ask before sending” switch can be turned off completely.

Firefox: Settings → Privacy & Security → Permissions → Notifications → Settings. Remove unknown sites and tick “Block new requests asking to allow notifications”.

The exact labels change a little with browser versions, but the path stays the same: settings, site permissions, notifications.

The sledgehammer: clear browsing data. For me the alerts also disappeared when I cleared the browsing history and cache, even while the clearing was still running. The reason: a website delivers its notifications through a small background service in the browser, a so-called service worker, together with a push subscription. Both count as stored site data. If “cookies and other site data” are cleared as well, the subscription is gone and the site can no longer send anything. Two catches: afterwards you are logged out of every website, and the permission itself may stay in the notification list. So a look at the settings above is still worth it, otherwise the site simply subscribes again on your next visit.

🔕 Switching them off in Windows 11

If you want quiet quickly, you can also start in Windows:

  • Right at the message: with a right click or the three dots on a notification, Windows offers to turn off all notifications from this browser.
  • In the settings: Settings → System → Notifications. There you can turn off notifications per app, for example for Chrome or Edge, or altogether. “Do not disturb” mutes everything for a while.

This is an emergency brake, not a fix: if you mute the browser in Windows, useful messages are lost too, and the website’s permission stays in the browser.

🚑 Already clicked?

  • Only landed on the page, entered nothing, downloaded nothing: remove the notifications as above, done.
  • Installed something: check under Settings → Apps what is new and remove unknown programs. Then run a full scan in Windows Security, even better the Microsoft Defender Offline scan.
  • Check browser extensions: remove unknown extensions. Some sites install one that changes the start page or the search engine.
  • Entered payment details or passwords: call the bank right away and change the affected passwords, ideally from another device.

🛡️ Prevention with uBlock Origin

The best thing is not to land on such sites in the first place. uBlock Origin, a free content blocker, helps with that. It blocks known malicious and scam addresses, many of the boxes asking for notifications (with the filter lists for annoyances, which can be switched on in the settings under “Filter lists”), and on top of that a lot of advertising, right up to video ads on big video platforms. You cannot rely on that completely: the platforms fight back, and not every ad can be hidden for good.

Important when installing:

  • Firefox: the full uBlock Origin is still available there, in Mozilla’s official add-on directory.
  • Chrome and Edge: because of a new interface for extensions (Manifest V3), they no longer support the full uBlock Origin, or only in a limited way. There you get uBlock Origin Lite, which can do less but still blocks a lot.
  • Mind the name: there are copycats with similar names. The original comes from Raymond Hill (gorhill). Only install from the browser’s official store.

🎯 Conclusion

  1. Most “virus alerts” are website notifications, neither viruses nor messages from Windows.
  2. Look at the sender: if it names a browser, the message comes from a website. Real warnings come from “Windows Security”.
  3. Remove the permission in the browser, do not just mute Windows.
  4. Never click “Allow” when a site demands it for videos or a robot test.
  5. Install uBlock Origin: the full one in Firefox, the Lite version in Chrome and Edge, both only from the official store.

📚 Related posts:

Some text and images on this site are AI-assisted or AI-generated. Details