Ultimate solution to WP spam problem
Posted: October 31st, 2004 | Author: arnoldgamboa | Filed under: Webby | View CommentsIf you’re a blogger, uses WordPress and is plagued by thousands of spam everyday, this post is for you.
These spam comment posts are coming from spambots, some program like “Link Dump”. I’ve tried several anti-spam procedures but unsuccessful. I never thought that the solution is too simple. LisaS’s post at WordPress Forum suggests a simple hack.
Change the name of your wp-comments-post.php to something else – - I changed mine to something like: stopspam-post.php.
Then find your wp-comments.php file. Look for this line:
<form action="<?php echo $siteurl; ?>/wp-comments-post.php" method="post" id="commentform">
And change the wp-commens-post.php to the file that you renamed it to.
For example, since I renamed my wp-comments-post.php to stopspam-post.php — that line in the wp-comments.php now looks like this:
<form action="<?php echo $siteurl; ?>/stopspam-post.php" method="post" id="commentform">
This principle can be applied to popular blog software like Movable type, too, I think. The trick is to trick the spambots. :) It worked for me.