I'm being stupid & anxious, but I need confirmation. I was navigating to a domain, and accidentally messed up the spelling, and it redirected me to an IP address and a fake Apple ID sign in came up, with a pop-up apparently scanning the Mac for viruses.

Of course, I know it's a fake scan. Of course, I know it's not an official site.

That's not what I'm asking, I want to know if I can get a virus on my Mac just by opening that site. I closed the tab 5 seconds after it redirected & I didn't enter anything into the text fields.

[MacBook Pro M1, Safari 15, macOS Big Sur]

  • Basically: YES (even though it's unlikely).
    – nohillside
    Oct 7, 2021 at 6:56
  • What do you mean? Could you provide more information? Oct 7, 2021 at 7:02
  • Software (e.g. Safari) has bugs, any webpage can inject malware which makes use of them to attack a system.
    – nohillside
    Oct 7, 2021 at 8:53

2 Answers 2


Yes, it's possible.

Whenever you browse a web site, your browsing software sends a User-Agent field saying which browser it is.* A topical example is:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2)
       AppleWebKit/601.3.9 (KHTML, like Gecko) 
       Version/9.0.2 Safari/601.3.9

This shows the browser is Safari and which version, and that the OS is 10.11. Now, that is powerful information. Because the hacker (or more likely, their malware vendor) has a catalog of which exploits work on which OS and which browser. And so they return a page with one or more of the exploits that work against you, IF ANY.

For instance when I hunted these pages for a living, I used a current level Mac and they didn't have any exploits for that. So they would "punt" and serve me "monetization of last resort": paid search results (like on a parked domain), or often even a blank page.

They've upped their game. Now, they are now offering social exploits. They returned a fake Apple login because your User-Agent said you were on a Mac.

Anyway, the answer to your question is "yes, possibly". You are in the middle of a race between the black-hats who find exploits, and the white-hats and engineers who patch exploits.

I would note that most browsers give you an option to change the User-Agent to anything you want. Using another platform/browser's agent would cause such sites to throw the wrong exploits at you... but that could cause other weirdnesses on legit sites.

* The legitimate uses of this are customizing web content for browser capability (e.g. deploying Windows-Only features or HTML5 "web app" features when the browser can handle it; and taking a census of active site users so they can map the money they make from each user vs the browsers they use. so they don't accidentally drop support for their highest rollers. Honestly, not sending User-Agent at all would be a huge boon for security, but the money-biz people would complain, and guess who wins that one.


If there was an exploit in Safari then yes, there could be a chance you could get a virus just from clicking onto a website. However, these exploits are generally patched very quickly, aren't that common, and these type of scam websites generally aren't sophisticated enough to do something involving them.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .