Forget Spam Comment


The fastest and GDPR compliant Anti-Spam plugin to prevent bot spam in the Default Commenting System of WordPress.


  • Please clear page cache after plugin activation.
  • Only for default commenting system. Not for AMP.


  • 100% GDPR Compliant.
  • Captcha-Free solution.
  • Requires no settings.
  • Automatic. No need of false-positive comment moderation.
  • Compatible with all page caching and performance optimization plugins.
  • Fastest ever. A tiny inline JavaScript in just ~200 bytes does all magic.

How does it work?

To prevent spam comments plugin blocks the default action path (wp-comments-post.php) for bots and make it accessible over unique hash query string when a visitor scroll to leave a comment. This way it prevents automated spam comment done by bots.

Video Demonstration

Watch on YouTube

Let’s support each other 🙏

  • Please Upvote Forget Spam Comment plugin at Product Hunt
  • You can contact me to report any issues. I’d be happy to assist.


To install this plugin from WordPress Dashboard

  1. Go to Plugins menu > Add new
  2. Search for Forget Spam Comment
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. If you are using any page cache plugin, make sure to purge/clear the cache.

To install this plugin manually

  1. Download the Forget Spam Comment Plugin
  2. Upload Forget Spam Comment to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. If you are using any page cache plugin, make sure to purge/clear the cache.


How to test whether this plugin is working or not?

Go to any post where comment is enabled and try to post a comment. If comment is posted successfully means everything is working fine. If you see error 400, you just have forgot to clear page cache after plugin activation. If you are still unable to post a comment and page just reload to itself means your theme uses a different comment form ID that has not been included by this plugin. Please create a support topic with your site URL. I will take care of it.

Which commenting system is supported by this plugin?

Only Default Commenting System of WordPress. Any other commenting system like AMP, Disqus, JetPack Comment, wpDiscuz are not supported.

How to get technical assistance for this plugin?

Kindly allow me a chance to look into your problem by opening a support topic. I will reply in 24 hours.


09 July 2024 3 replies
This is a great plugin, worked perfectly. But I just updated to 6.5.5, and it immediatly stopped working. Gulshan, could you please update the plugin. thanks
09 May 2024 1 reply
This is the best ultra-simple (and free) way to stop comment spam, thanks to the method it uses. Alternative effective solutions are more complicated and involve webserver configuration or WAF and CAPTCHA services. Other plugins simply fail to address the root cause of comment spam. This is the one to use.
19 November 2023 3 replies
This plugin returns an email warning from Wordpress as not being secure and blocks access to login page. It produces a fatal error. I’ve edited this review to reflect the support provided and may look into this plugin again in the future if needed to test again.
28 August 2023 1 reply
Simple and effective solution against comment spam. Gone from 3 spams a day to zero immediately after installing it.
24 May 2023 1 reply
In Drupal world, Antibot is the module that does the same thing that Gulshan has done in this plugin for WordPress and I must say that this plugin works like a charm! Again, no fuss plugin, set it and forget it and that’s why it completely deserves all the 5 stars that it can get. Great stuff Gulshan.
Read all 46 reviews

Contributors & Developers

“Forget Spam Comment” is open source software. The following people have contributed to this plugin.


“Forget Spam Comment” has been translated into 7 locales. Thank you to the translators for their contributions.

Translate “Forget Spam Comment” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Tested with 6.5.5 Updated on 09-July-2024.


  • Hotfix for Bedrock Compatibility. Updated on 30-Jan-2024.


  • Enhanced Bedrock Compatibility. Updated on 24-Jan-2024.


  • Added a fallback to cover unexpected cases. Updated on 20-Nov-2023.


  • Enhanced uniqueness in query string parameters. Updated on 19-Nov-2023.
  • Kindly clear your page cache after updating to version 1.1.3.


  • Tested with WordPress 6.4.1 and PHP 8.2.12
  • Addressed referral handling for increased precision
  • Improved code readability and consistency following WordPress coding standards


  • Tested with WordPress 6.2 and PHP 8.2.4


  • Tested with WordPress 6.1.1 and PHP 8.2.3
  • Updated links


  • Tested with WordPress 6.0


  • Tested with WordPress 5.9.1 and PHP 8.1.3


  • Tested with WordPress 5.8
  • Enhanced compatibility


  • Tested plugin up to 5.7


  • Added hint for purging cache in the generated error page to assist first time plugin user.


  • Minor tweaks


  • Minified inline JS for better performance
  • Translation made available for Hindi, Bengali, English (United States), English (UK).
  • Minor tweaks


  • Added hint for purging cache upon plugin activation
  • Added support links


  • Performance optimization


  • Initial release