Sometimes fraudulent web sites might send you messages to try to make you do something that you shouldn't. For example, you might get errors like "System Mac OS is infected. Choose an action to restore the system".
In most cases, there is nothing genuinely wrong, and the messages are just a nuisance (unless you do what they tell you to do, which you generally shouldn't). To stop a web site sending you unwanted messages, follow these steps:
In Safari, go to Preferences. Then click Websites. Then click Notifications in the list on left. Then look through the list and remove anything that looks suspicious.
My latest blog post: Deontology vs Consequentialism: If we have free speech, personal freedom, equality, and truthfulness we are off to a pretty good start. (posted 2025-10-20). Warning: mysqli_connect(): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 51
Warning: mysqli_connect(): Error while reading greeting packet. PID=89636 in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 51
Warning: mysqli_connect(): (HY000/2006): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 51
Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 52
Could not connect to MySQL: