"Your Mac is infected": how to close a fake virus warning safely
In short: A web page that says your Mac has viruses, sounds an alarm and gives a phone number is a scam, and visiting it didn't infect your Mac. Don't call and don't click anything on it. Quit the browser with Command-Q, or force it to quit with Option-Command-Esc, then reopen Safari while holding Shift so the page doesn't come back. If you already called, let someone in or paid, the steps for that are below.
These pages look alarming on purpose. They fill the screen, use Apple's logo and colours, show a fake scan with a list of "threats", count down, sometimes beep or speak, and keep opening dialog boxes so the page seems impossible to close. All of it is a web page inside your browser.
Apple's advice is short: if a pop-up warns you about security problems or viruses, don't believe it. Such pop-ups are usually fraudulent advertisements, and you should not call the number or follow the links (Apple). The US Federal Trade Commission puts it even more simply: real security warnings never ask you to call a phone number (FTC).
What a real warning from macOS looks like
macOS does have built-in malware protection. When it finds known malware, it stops the app from opening, says the app will damage your computer, and moves it to the Trash (Apple). That message comes from the Finder or the system, about a specific app. It never appears inside a web page, and it never comes with a phone number.
How to close the page
- Don't click anything on the page, including buttons that say Close, Cancel or OK. They are part of the page.
- Quit the browser. Press Command-Q. If nothing happens, press Option-Command-Esc, select the browser in the Force Quit window, and click Force Quit (Apple).
- Reopen Safari while holding the Shift key. It then starts without the windows you had open, so the page doesn't come back (Apple). In another browser, close the tab as soon as it reappears.
Being on the page didn't harm your Mac. If you didn't download, install or type anything, you are done.
If warnings keep appearing
Small alerts in the top-right corner of the screen, even when Safari is closed, are usually website notifications. At some point a site asked to send notifications and the request was allowed. Open System Settings › Notifications, find the website under Application Notifications, and turn off Allow Notifications. To stop sites asking at all, open Safari › Settings › Websites › Notifications and deselect "Allow websites to ask for permission to send notifications" (Apple).
The page opens by itself when you start Safari or open a new tab: check Safari › Settings › Extensions and turn off any extension you don't recognise.
You installed something the page offered, such as a "cleaner" or a "security update": drag it to the Trash and empty it. Apple notes that these pop-ups are often designed to get you to download damaging software (Apple).
If you called the number
The page is only the first step. The money is taken on the phone. The FTC describes the usual script: the "technician" asks for remote access to your computer, pretends to scan it, finds a problem and charges to fix it, often by gift card, wire transfer or cryptocurrency, because that money is hard to get back (FTC).
If that happened:
- Hang up and disconnect the Mac from the internet. Turn off Wi-Fi from the menu bar.
- Remove the remote-access app they had you install. Look in your Applications folder for anything installed that day. Then open System Settings › Privacy & Security and check Screen Recording (called Screen & System Audio Recording in newer versions of macOS) and Accessibility: remove any app there that you don't recognise. Remote-control apps need these permissions to see and move things on your screen.
- Call your bank or card company if you paid or typed card details, using the number on your card. If you paid with a gift card, contact the company that issued the card as soon as you can.
- Change passwords you typed during the call, or that they could have seen, from another device if you have one. Start with your email and your Apple Account.
- Report it: at ReportFraud.ftc.gov in the US, and to your local police. The FTC uses reports to build cases against scammers (FTC).
These calls are not rare. In 2025, people reported $2.1 billion in losses to tech and customer support scams to the FBI, and $1.04 billion of that was lost by people over 60 (FBI IC3 2025 report). If it happened to you, you are far from alone.
Where Ranger fits
The pages behind these warnings move to new addresses all the time, and the known ones end up on lists of scam sites. Ranger checks every connection on your Mac, from every app, against such lists, updated daily. When a fake warning page is on the list, it doesn't load: you see an error page instead of an alarm, and Ranger shows its one notification, Blocked a dangerous site. Ranger also blocks known ad networks, and Apple notes that these pop-ups usually arrive as advertisements.
A page that went online this morning may not be on any list yet. The rule that protects you every time is the FTC's: a real warning never asks you to call. Ranger's trial lasts 14 days and needs no email or card.