if ($mapOutput === “Alert”) {
file_put_contents(‘ALERT.txt’, “ALERT\n”);
$ip_address = $_SERVER['REMOTE_ADDR'];
$file = 'abuse.txt';
$current = file_get_contents($file);
// Append IP address and messageFromFile to the current content
$current .= $ip_address . "\n" . $messageFromFile . "\n";
file_put_contents($file, $current);
}
I have a zero logging policy except when I keyword map abuse in my code
My site is public facing and I can stop it
Blocking abusing IP addresses