How to Stop Fake Virus Notifications From Websites

Pop-ups warning that your device is infected often come from a website you once allowed to send notifications. Here is how to switch them off in Chrome, Edge, Firefox and Safari.

Short answer

Those "virus detected" alerts are usually website notifications, not malware. Open your browser settings and remove the site from the list allowed to send notifications: in Chrome, go to Settings > Privacy and security > Site settings > Notifications. Do not click the alert or call any number in it. Then run a scan with your antivirus to be safe.

In this article 10 sections
  1. Why this happens
  2. Chrome on a computer
  3. Microsoft Edge
  4. Firefox
  5. Safari on a Mac
  6. Chrome on Android
  7. iPhone and iPad
  8. After you have blocked them
  9. When to get help
  10. Common questions
Google Chrome web browser open on Windows 11
Each browser keeps a list of the sites you have allowed to send notifications. Image: Megamanfan3 / Wikimedia Commons, Public domain

Pop-ups in the corner of your screen saying "Virus detected!", "Your PC is infected" or "You have won a prize", even when you are not on any website, are usually not a virus at all. They are web notifications: at some point a website asked to "show notifications", and someone clicked Allow. That site can now send messages through your browser, sometimes even when the browser is closed. The good news is that you can switch them off in a minute or two. Below are the steps for Chrome, Edge, Firefox and Safari, and on Android and iPhone.

Why this happens

Some websites trick people into allowing notifications. Malwarebytes describes quiz and download sites that show a "Click Allow to continue" message, and says its support staff kept hearing from customers who thought they had an infection when their scans were clean. The cause turned out to be push notifications, which can appear in Chrome, Firefox, Edge, Opera and Safari on Windows, Mac, Android, Chromebook and Linux.7

Allowing notifications does not install malware by itself, but the messages can push scams, fake security warnings and harmful links or downloads.8 That is why the warnings keep coming even after an antivirus scan finds nothing.8

Don't click the notification

Do not tap the notification, its buttons or its links, even to "manage settings". Change the permission in your browser's own settings instead.8 Never call a phone number shown in a pop-up: the FTC says real security warnings from tech companies never ask you to call a number.9

Chrome on a computer

  1. Open Chrome and click More (the three dots) > Settings > Privacy and security > Site settings > Notifications.1

  2. Next to Not allowed to send notifications, select Add and enter the address of the site sending the spam.1 You can also open a single site, select View site information next to the address bar and change its notification permission there.1

  3. To stop sites interrupting you with permission requests in future, select Use quieter messaging on the same page. Sites can still ask, but you will only see a small bell icon in the address bar.1

  4. If you never want notifications from websites, select Don't allow sites to send notifications.7

Chrome now blocks notifications from some sites it finds intrusive or misleading, and may remove permission from sites you have not visited for a while. You can review these under Settings > Privacy and security > Safety Check.1

Microsoft Edge

  1. Select Settings and more (the three dots, top right) > Settings > Privacy, search, and services > Site permissions > All sites.3

  2. Find the site, open the drop-down next to it and choose See more.3

  3. Under Notifications, choose Block.3

Microsoft notes that sites with notifications switched on can still send them when Edge is closed.3

Firefox

  1. Click the menu button and choose Settings > Permissions and data. Under Permissions, next to Notifications, click Settings.4

  2. Select the site and either click Remove Website, or change its status to Block so it cannot ask again.4

  3. To stop all sites from asking, tick Block new requests asking to allow notifications.4

  4. Click Save Changes.4

Safari on a Mac

  1. Open Safari and choose Safari > Settings > Websites, then click Notifications in the sidebar.5

  2. Find the website and set it to Deny.5

  3. To stop websites asking in the first place, deselect Allow websites to ask for permission to send notifications.5

You can also turn off a site's alerts in Apple menu > System Settings > Notifications: click the website under Application Notifications and turn off Allow Notifications.5

Chrome on Android

  1. Open Chrome and tap More > Settings > Site settings > Notifications.2

  2. Turn notifications off for the sites you do not want, or use the switch at the top to block them all.2

  3. Turn on Use quieter messaging to stop new requests from interrupting you.2

When a spammy notification appears, you can swipe down, tap Unsubscribe and then Report spam to Chrome. This sends the notification and site address to Google.2

iPhone and iPad

If unwanted alerts appear on an iPhone or iPad, swipe left on the notification on the Lock Screen or in Notification Centre, tap Options, then Turn Off.6 You can also choose which apps may send alerts in Settings > Notifications.6

After you have blocked them

  1. Scan for real malware. The FTC recommends updating your security software and running a scan.9 Which? suggests a full scan with your antivirus, such as Microsoft Defender in Windows Security.10

  2. Check extensions and settings. Which? recommends removing browser extensions you do not recognise and checking that your search engine and home page have not been changed.10 Our browser safety tips explain what to look for.

  3. Reset the browser as a last resort. This can remove extensions and cookies, so make sure you will not lose saved passwords first.10 Clearing site data is covered in how to clear cache and cookies.

  4. Be wary of "Allow" buttons. Treat any page that says you must allow notifications before you can continue as a red flag.8

Notifications are different from pop-up windows. Pop-ups have their own setting: in Chrome, it is under Settings > Privacy and security > Site settings > Pop-ups and redirects.1

When to get help

If you already called a number from a fake warning, or let someone connect to your computer, read our guide to tech support scams. The FTC advises changing any password you gave to a scammer, and asking your bank or card provider to reverse any payment.9 If you think an account has been taken over, see what to do if your account is hacked.

Common questions

Is my computer infected if I see these notifications?

Not necessarily. Malwarebytes says many people who report these "infections" have clean computers and are simply receiving notifications from a site they allowed.7 Removing the site's permission stops them. It is still sensible to run a scan.9

Why does it show a McAfee or Norton logo when I don't have that software?

Scam pop-ups often copy well-known security brands to look convincing, so a familiar logo does not mean the warning is genuine.10 Malwarebytes also warns that affiliates use notifications to advertise security software.7

Sources and further reading

  1. Use notifications to get alerts (computer) — Google Chrome Help
  2. Use notifications to get alerts (Android) — Google Chrome Help
  3. Manage website notifications in Microsoft Edge — Microsoft Support2026-11-26
  4. Web Push notifications in Firefox — Mozilla Support
  5. Customize website notifications in Safari on Mac — Apple Support
  6. Use notifications on your iPhone or iPad — Apple Support2026-09-17
  7. Quiz sites trick users into enabling unwanted browser notifications — Malwarebytes2026-03-09
  8. Why scammers want you to allow push notifications — Malwarebytes2026-11-12
  9. How To Spot, Avoid, and Report Tech Support Scams — FTC2025-09
  10. Sick of scam pop-ups? Here's how to deal with them — Which?2026-11-18

Was this article helpful?

Tell us where you got stuck

Didn’t work? Tell us which step went wrong. We read every note and use them to fix and improve this guide.

Private. This goes only to the ByteExplained editors with the guide’s title. It isn’t published on the site.

Please don’t include passwords, QR or activation codes, or identifiers such as your phone number, EID or IMEI.

Comments

No comments yet. Questions and tips from readers are welcome.