How to protect MacBook Air from online threats?
Last night I was on what I thought was a craft site. It asked me to check the box to make sure I'm human, so I did and then the screen had a message saying my computer is infected. I did NOT click on it, closed out Safari, cleared history. Extensions are cleared, cookies, fraudulent websites warning is checked, Applications to uninstall, Safari is up to date (16.6), MacBook Air 2017 is up to date macOS Monterey 12.6.8. I ran Malwarebytes free version and says all is okay.
I'm also getting these system pop ups that say, You have a virus, click here. I do NOT click on these. Detected: Trojan #$%@, and a few others that I wasn't quick enough to take the photos. They seem to be disappearing quicker.
I was in a chat with Apple and all of a sudden after I told the person I tried what he was suggesting, chat support became currently unavailable. I don't know what else to do.
[Re-Titled by Moderator]