How to Avoid Spam Remarks on WordPress One of the biggest challenges you face while running a blog is adding spam to different forms. Commenting on spam is the most common form of spam and when it comes to WordPress, we have many comments to fight spam. Akismet is the best way to use WordPress plugin.
You can get the Akismet WordPress Plugin from here and see this guide to learn how to get free API key for Akismet plugin.
Although many times if you see your comment spam page, you are constantly sending some IP spam comments. This is the easiest way to get rid of spam. Blocking your IP address using the Htaccess method. I highly recommend keeping a backup of your .htaccess file before editing it. . The Htaccess file is located on the root of your WordPress installation and you can either use SEO by the Yoast plugin> edit the files to edit your .htaccess file or you can follow this guide, which I can do with htaccess The file can say the changes are mentioned below. Make sure that you backup your .htaccess file before making changes, because the wrong site will not be accessible on your site.
How to edit .htaccess file
How To Avoid Spam Comments on WordPress Here is the code that you need to enter in your .htaccess file, and upload it
<Limit GET POST> order allow,deny deny from 18.104.22.168 allow from all </Limit>
You can always enter more IP by adding another line
You can get the spammer’s IP in your spam comment page, under the WordPress Dashboard, I’ve found the best way to fight against lots of spam from bots like this. Here is a post that I recommend to every WordPress blogger to read about comment control on my blog:- Link will be available SOON