Spam and WP comment architecture
-
I am trying to figure out how the spambots work. Am I correct in assuming that the only place that WordPress inserts comments is in
wp-comments-post.php :
$wpdb->query(“INSERT INTO $tablecomments
(comment_post_ID, comment_author, comment_au ….
If so, and if I insert a function that checks for forbidden words like ‘holdem’, in this very file, and if this filter discards every manual post that I test it on before the execution reaches the insert into the comment table, then how in heavens name is the spambot still able to insert comments with the forbidden words into my comment table? I don’t see how it can skip across my function which is invoked just before the insert. It seems as though it does the insert without using the WordPress insert function? is there another insert function somewhere else. Or else what is going on?I can’t see how it can insert comments directly into the WordPress DB without going thru this code segment? What am I missing?
- The topic ‘Spam and WP comment architecture’ is closed to new replies.