Reducing WordPress Comment Spam

This blog gets dozens of comment spam. Almost all are trapped by Askimet. The funny thing about them is that few have links in the comment itself. Most have the target link in the commenters URL. I’m thinking that the best way to stop the comments is to remove the ‘Website’ field from the comment form. That field is created by the comments.php file. For some reason, it is located in the theme folder. To comment out the field, go to wp-content, themes. Then locate the theme you are using on the site. Inside that folder is a file called comments.php.

Look for the word ‘Website’. It is in this block of code.


<p><input type="text" name="url" id="url" value=
"<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>

To comment it out you need to put this line before the block

<?php /*

and this line after.

*/ ?>

Your code should look like this when you are done.


<?php /*
<p><input type="text" name="url" id="url" value=
"<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>
*/ ?>

I’ll report back on how well this works to reduce spam comments.

Update: 2010-10-10 Spam has now changed to link overload spam. Dozens of links in the spam post. None get thru the filter.

Update: 2011-06-20 This is my favorite spam comment of all time. Ironically it’s on this post.

Definitely believe that which you said. Your favorite reason appeared to be on the web the easiest thing to be aware of. I say to you, I certainly get annoyed while people think about worries that they just do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side effect , people can take a signal. Will probably be back to get more. Thanks

Update: 2011-07-11 This is my new favorite spam comment. Again, on this post.

You can make money with this blog but what about a system that lets you make money without even having a website? Basically, this is an underground software that you simply have to see to believe. Imagine making money 24 hours a day without even needing a website. Imagine never having to write articles, pay for clicks, build and maintain websites, and all that. Once you see how this thing works, you will be slapping your forehead. If you are also tired of jumping through all of those hoops or if you are new to Internet marketing and would like to earn some real income online then you should check this out myspammysite.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.