Top ways to avoid WordPress comment spam
✕
  • About me
  • Blog
CoastaContentllogo
  • Home
  • Human generated content
  • AI generated content
  • Freelance content
  • Contact
✕
  • About me
  • Blog

Top ways to avoid WordPress comment spam

Top ways to avoid WordPress comment spam

If you run a blog that allows comments, chances are that consigning comment spam to the trash is a daily chore. I get hundreds of such things every week, some with bizarre comments, some with laughable ones. None are real. So how do you avoid WordPress comment spam without impact on your users?

As I predominantly use WordPress, I’m concentrating on techniques I know work on the platform. Some of these tips can be used with other CMS, like using nofollow on comments, using Captcha or removing URLs from the comment form, so let me know if they work on your CMS of choice.

Use Akismet

Akismet comes bundled with WordPress so there really is no excuse not to use it. Initially, I thought it was just a pain to have to register and get an API key but once I tried it I haven’t gone back. Akismet uses advanced algorithms to capture and remove comment spam and is pretty good at what it does. I’m going to cover it in much more depth in a future post.

Nofollow comments

The primary purpose for the majority of comment spam is to get a backlink. By making comments ‘nofollow’ the bots that leave spam comments are soon leave you alone. You can configure WordPress to ensure nofollow for comments. There are plugins for Joomla and configs for Drupal too.

Disable trackbacks

A simple way to avoid many spam comments is to disable trackbacks. If you take away the reason to be spammed, you will get fewer spam comments. Some will still persist though, as they always do.

Navigate to Settings > Discussions and untick the second box in Default article settings which should say ‘Allow link notifications from other blogs.’

Use captcha

Using WP-reCAPTCHA or other captcha plugin on your login and comment forms will go a long way to reducing comment spam. As most of these comments are delivered by bot, they won’t be able to get past the captcha. Some comments are spammed manually and this technique won’t avoid those but it will avoid the vast majority of bots.

Remove the URL field

Add the following code to your functions.php file. Remember to take a good copy first in case your theme does something funky. I use it on most of the sites I manage with no ill effects.

function disable_comment_url($fields) {

unset($fields[‘url’]);

return $fields;

}

add_filter(‘comment_form_default_fields’,’disable_comment_url’);

Disable comments

Finally, you could always disable comments altogether. For some sites, this might work as commenting and user feedback might not feature in the intent. However, it’s always good to hear what your readers think so should be avoided wherever possible.

If you use Akismet, have disabled trackbacks, removed the URL field and added nofollow to comments, you should no longer be receiving anywhere near the amount of comment spam you were. That should be enough for most websites!

Share

Related posts

Three women sitting around a white table during a job interview
Apr 29, 2022

Four easiest ways to change careers in 2022


Read more
Freelance blogging services
Feb 11, 2020

Freelance blogging services


Read more
Using Quora to find blog topics
Jul 18, 2016

Using Quora to find blog topics


Read more

Leave a Reply

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

CoastaContentllogo

Monday - Friday: 7:00 AM - 4:00 PM

jamie@coastalcontent.co.uk

Links

  • Home
  • Human generated content
  • AI generated content
  • Freelance content
  • Contact

More links

  • Blog
  • Cookie policy
  • Privacy

© 2025 Coastal Content | All Rights Reserved

This website uses cookies to improve your experience but not to track you or anything you do. We'll assume you're ok with this, but you can opt-out if you wish.Accept Read More
Privacy & Cookie Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT