Comment Moderation and Spam wordlist code?
-
Where is the code for the spam words comment moderation located?
I have all comments moderated- but get sick of needing to delete all the notifications and moderated comments for the spam.
I have been using code like this:
$spam = (!is_int(strpos($author, ‘texas’)));
if (!$spam)
die( __($spam) );
In my wp-comments-post.php file which rather than ‘moderating’ a comment when it matches a word- the comment never even gets made. Further more, I am pondering sending the matched words into an infinite redirect loop, or maybe some sort of per click ranking site.
The code I have been using works, but it is obviously not very scalable. I would like to modify the spam words list so that if something in the comment matches- it dies rather than goes to the queue
- The topic ‘Comment Moderation and Spam wordlist code?’ is closed to new replies.