From 3fa646868a505983711489e8697c396080f185a2 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sun, 27 Mar 2011 23:13:24 +1100 Subject: [PATCH] Added IP address to flood filter --- post.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/post.php b/post.php index 590be24a..e303abf6 100644 --- a/post.php +++ b/post.php @@ -347,6 +347,9 @@ } elseif($condition == 'body') { if(preg_match($value, $post['body_nomarkup'])) continue; + } elseif($condition == 'ip') { + if(preg_match($value, $_SERVER['REMOTE_ADDR'])) + continue; } elseif($condition == 'OP') { // Am I OP? if($value == $OP)