From 0269dccacb67f25beb39dac8f16fb3d5538c7782 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Wed, 4 Jun 2014 11:04:21 +0200 Subject: Little improvement for the logging function. Log spamers into the logs file. --- execute.php | 1 + 1 file changed, 1 insertion(+) (limited to 'execute.php') diff --git a/execute.php b/execute.php index d927141..9761c57 100644 --- a/execute.php +++ b/execute.php @@ -25,6 +25,7 @@ require_once 'utils.php'; // Obvious spam if (!isset($_POST['dontlook']) || !empty($_POST['dontlook'])) { + log_to_file('Spam detected from '.$_SERVER['REMOTE_ADDR'].'.'); die('Spam detected'); } -- cgit v1.2.3