diff options
author | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-04 11:04:21 +0200 |
---|---|---|
committer | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-04 11:04:21 +0200 |
commit | 0269dccacb67f25beb39dac8f16fb3d5538c7782 (patch) | |
tree | a257d5ef3d49883ca9dd819622521ae43f491bee /execute.php | |
parent | 3b65c83a5e2ce34a27d104fdb3761cbea18cda90 (diff) |
Little improvement for the logging function.
Log spamers into the logs file.
Diffstat (limited to 'execute.php')
-rw-r--r-- | execute.php | 1 |
1 files changed, 1 insertions, 0 deletions
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'); } |