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

Leave a Reply

To leave a comment, please Login or Register

Comments (2)

Balvinder Singh Selected

Balvinder Singh

2 years ago
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

Akshat Gupta

Akshat Gupta

2 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