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
Open Chrome and click More (the three dots) > Settings > Privacy and security > Site settings > Notifications.1
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
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
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
Microsoft notes that sites with notifications switched on can still send them when Edge is closed.3
Firefox
Click the menu button and choose Settings > Permissions and data. Under Permissions, next to Notifications, click Settings.4
Select the site and either click Remove Website, or change its status to Block so it cannot ask again.4
To stop all sites from asking, tick Block new requests asking to allow notifications.4
Click Save Changes.4
Safari on a Mac
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
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
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
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.
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.
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
