January 03rd, 2024

How to Stop WordPress Spam Comments?



How should I remove thousands of comment on my site, I dont know how to switch off commenting, just able to partially avoid commenting by sending certain comments to trash directly, pls guide

Like (1) Comments (2)



2 Comments Add Your Comment


Balvinder Singh
3 years ago Selected
Do add Google captcha to stop spam, as spam comments mostly comes from bots. GCpatcha will stop all the bots and so spam.
If you looking to block comments that are not relevant but from genuine users, do use plugins like Akismet which filter out some keywords and you can block/delete all by keywords
Likes (2) Reply
Akshat Gupta
3 years ago
Login to the Cpanel of your website and select File Manager > Public_html >.htacces. Click on Edit. Paste the code given below and save it.

Order Allow, Deny
Deny From Xxx.xxx.xxx.xx
Allow From All

Instead of xxx, enter the IP address of the comment.

Spam comments will stop coming after setting this
Like (1) Reply

Post a Comment

To leave a comment, please Login or Register