Ultimate solution to WP spam problem

If 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.

  • http://www.kerentan.com Keren

    Thank you so much for this tip, Arnold! I’ve been looking for a solution and you gave it to me. :) Congratulations also on bagging the Superblessed Award, you clearly deserve it. :) God bless you! :)

  • http://www.kerentan.com Keren

    Thank you so much for this tip, Arnold! I’ve been looking for a solution and you gave it to me. :) Congratulations also on bagging the Superblessed Award, you clearly deserve it. :) God bless you! :)

  • http://elliottback.com/wp/archives/2004/11/29/spam-stopgap-extreme/ Elliott Back

    This is only going to work until they decide to (properly) scrape the comments form for the post URLs. Once that happens, you’ll need a better plugin. Have you had spam since this post?

  • http://elliottback.com/wp/archives/2004/11/29/spam-stopgap-extreme/ Elliott Back

    This is only going to work until they decide to (properly) scrape the comments form for the post URLs. Once that happens, you’ll need a better plugin. Have you had spam since this post?

  • http://graceplace.ph Arnold

    Hi Elliot. Unfortunately, spam is picking up again. It seems that they found the work around. :( Any plug in that you recommend I use?

  • http://graceplace.ph Arnold

    Hi Elliot. Unfortunately, spam is picking up again. It seems that they found the work around. :( Any plug in that you recommend I use?

  • http://elliottback.com/wp/archives/2004/11/29/spam-stopgap-extreme/ Elliott Back

    My own, of course. Give it a try, let me know:

    http://elliottback.com/wp/archives/2004/11/29/spam-stopgap-extreme/

    Also, there are these:

    http://www.tamba2.org.uk/wordpress/spam/

    I’ve heard using my plugin in combination with some others is a bad idea….

  • http://elliottback.com/wp/archives/2004/11/29/spam-stopgap-extreme/ Elliott Back

    My own, of course. Give it a try, let me know:

    http://elliottback.com/wp/archives/2004/11/29/spam-stopgap-extreme/

    Also, there are these:

    http://www.tamba2.org.uk/wordpress/spam/

    I’ve heard using my plugin in combination with some others is a bad idea….

  • http://graceplace.ph Arnold

    Thanks. I’ll check this out.

  • http://graceplace.ph Arnold

    Thanks. I’ll check this out.