1 Line of Code that Completely Eliminated Spam from Our Blog

SPAM is the bane of my existence. I hate webspam, email spam, snail mail spam.  Most of all, I hate comment SPAM.

The reason I hate comment SPAM the most is because I can’t just delete it all, I have to sift through each message to make sure I’m not deleting a real comment.


Let me start off by saying there are a number of amazing solutions out there to eliminate comment spam.  One thing to remember is while we are looking for solutions on how to eliminate SPAM, there are thousands of evil programmers every day trying to figure out how to get it through.


Probably the most popular solution.  It is also included by default with most one-click WordPress distributions. The only downside is it is paid.


Captchas are great and they work well.  The downside is that they really annoy people.

Switching Comment Systems

Lots of people are now using Disqus and Lifefyre for commenting systems.  We are even starting to see people using G+ comments.  Some folks are using Facebook comments as well.  Whatever the case may be, non-native WordPress commenting systems normally leave your comment’s clean as a whistle.

So what’s this line of code you are talking about?

Well, it’s not just one line of code, its actually about 680 lines of code.  My solution is a plugin called Growmap Anti Spambot Plugin.  It is very simple.  It places a check mark next to the “submit comment” button to ‘prove you are not a SPAMMER.’

The famous line of code:

‘checkbox_alert’ => __(‘Please check the box to confirm that you are NOT a spammer’,’ab_gasp’),

(note: code will only work with the accompanied plugin)

We used to get about 50 SPAM comments per day.  Since we installed the plugin, we have received ZERO.

Sometimes the solutions are so simple, you would have never guessed. This is definitely one of those cases.  Enjoy!

Patrick Coombe
Hello I'm Patrick Coombe and I'm the CEO and Founder of Elite Strategies, an agency I started in 2009. One of the main reasons I love blogging about SEO is the research it takes to come up with the posts. It allows me to not only write about what I love, but to learn more about the industry in the process. I hope you enjoyed this post, if you did consider sharing it or even better linking to it!
Blog Web Development WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Info

2240 Woolbright Road Suite 404
Boynton Beach, FL 33426

Phone: 561-526-8457
E-mail: info@elite-strategies.com
Fax: 561-526-8707