Blog

How to Stop Spam Comments in WordPress

Stop Spam Comments in WordPress

Every day, every user deal with WordPress spam comments on the Internet. From your email address, smartphone or WordPress site.  Sometimes it’s to be annoying.

To Stop WordPress Spam Comments in your website, you can use the following tricks;

  1. Activate Akismet Plugin 

Akismet Plugin in a wordpress default preinstalls plugin. It’s best for defense against spam comment. You just enable it. So it automatically plugin scan comments announce to your website and delete the foremost obvious spam, feat real comments to filter through to your moderation queue.

  1. Use CAPTCHA

It’s a great option is to use a CAPTCHA. It’s some type of form or question to challenge a bot and or rather prove that the visitor is a human. There is a lot of great and free plugins out there that allow you to implement captcha into your WordPress site.

  1. Check Discussion Settings

You can find all the options in Settings -> Discussion. In this, the page you can allow only registered and logged in users to leave comments on your site.  Check the little box in the settings which will help you to avoid spam because people who aren’t registered won’t even get a chance to write comments.

  1. Enable Comment Moderation
  • In Settings -> Discussion, select manually approve each comment. So the visitors see high-quality comments which you have approved.
  • Second In Settings -> Discussion, select comment moderation queue. So you can automatically hold a comment in moderation if it contains a certain number of links or more.
  • Second In Settings -> Discussion, select a comment blacklist. Here you can also build up a list of words, names, URLs, IPs, etc. It will automatically go straight to trash so you don’t have to worry about them.
  1. Modifying .htaccess to Prevent WordPress Spam Comments

Add below code to your root .htaccess to reduce spam comments.

Replace “yourwebsite.com” with your blog url. The code only blocks SPAM BOTS and not humans who manually try to spam.

# 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>

Spam comments will quickly fill up your website, creating it look unprofessional and driving real guests away. Cleaning up all that spam is challenging. So this post helps you to reduce spam comments on your website. I hope this post is helpful to you. Are there any nice ways to dam spam comments on WordPress?  I’d love to hear your suggestions in the comments section below.

About Author

WordPress Multi Lingual Plugin Support
Vijay Lathiya, the CEO and founder of Lathiya Solutions, is a passionate WordPress specialist dedicated to delivering innovative web solutions. With years of experience, he helps businesses build a strong online presence through custom websites that drive success.

Want to partner with the best software development company ?

Software Development
Scroll to Top