How to Get Rid of Spam Comments on WordPress Blog

Is your WordPress blog receiving a lot of spam comments? Well, you are not alone! The spam comment is a growing problem. Often websites get a large number of spam comments especially they drive tons of traffic on a regular basis.

Thankfully, WordPress has various ways to get rid of spam comments. In today's post, we are going to discuss some of the popular methods, useful WordPress plugins and valuable tips to combat comment spam.

Stop Spam Comments

Get Rid of Spam Comments on WordPress Blog

1

Activate Akismet

Akismet is a spam comment filtering service, developed by Automattic, a company behind WordPress. It is one of the most popular plugins used to remove comment spam.

Akismet filters comment spam as well as pingback spam using different algorithms. The plugin takes the pain out of comment moderation and lets you focus on other important things.

Major Features of Akismet:

  • Automatically checks all comments and filters out the ones that look like spam.
  • Comes with a discard feature that completely blocks the worst spam on your WordPress website, saving enough space on the disk while speeding up your site.
  • Stores status history of each comment, so the webmaster can easily check which comments were flagged as spam or filter by Akismet.
  • Displays URLs in the comment body to exhibit misleading or hidden links.
  • Displays the number of approved comments of each user to Moderators.
2

Hold Comments for Moderation

Another way of getting rid of spam comments is by holding them for moderation. This allows you to manually check each comment before approving them.

If it's abot, it won't get accepted and will stay in moderation. Also, if someone manually adds a link in the comment to get a backlink, you can either mark the comment as spam or simply blacklist.

To enable this option, click settings → discussion. A dialog box will appear with options such as default article settings, other comment settings, email me whenever, before a comment appears and comment moderation.

In “before a comment appears” option, check either “an administrator must always approve the comment” or “comment author must have a previously approved comment” depending on your requirements. And in the comment moderation option, add a number of links you'd allow in the comment.

3

Modifying .htaccess to Combat WordPress Spam Comment

.htaccess is a file that tightens your WordPress website's security. You can also prevent spam comment on your site by adding a few lines of code to this file.

Add the following code snippet to deny bots with no referrer.

# Protect from spam bots

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteCond %{REQUEST_METHOD} POST

RewriteCond %{REQUEST_URI} .wp-comments-post.php*

RewriteCond %{HTTP_REFERER} !.yourwebsite.com.* [OR]

RewriteCond %{HTTP_USER_AGENT} ^$

RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]

</IfModule>

4

Combat Spam with Honeypot

Honeypot is yet another popular technology used to the effectively stop spam on your WordPress website.

In order to use this technology, you will first need to install and activate a plugin “WP Spam Fighter”. Once you have activated this plugin, you will need to enable Honeypot protection by clicking settings →WP Spam Fighter.

This will automatically insert a hidden form into your comment section, which will be visible only to bots. Since these bots are programmed to fill in all the fields in a form, you can easily catch the spam with the help of this hidden form.

5

Disable Trackbacks

You may not know a huge chunk of comment spam is trackbacks. For a majority of the website, trackbacks are not even imperative. Thus, you can choose to either disable trackbacks on a particular post/page or on your entire website.

To disable trackbacks, click settings → discussion. In the default article settings, check “Allow link notification from other blogs (pingbacks and trackbacks)”.

Jason is a web development professional with hobbies of innovative and technical writing. Currently, he works for WordSuccor Ltd., a PSD to WordPress Development Company based in the USA and has successfully delivered many top-grade projects related to it. He has been actively writing blogs and articles about technical stuff.

9 Shares
+1
Tweet
Share