Block all IPs that try to comment on posts – WordPress

[ad_1]

Have no need for comments on my site and there is no frontend display for comments. But bots do comment on posts, wondering if instead of just disabling all comments on the site if it would be better to blacklist anybots IPs who do comment? And a code snippet to do so?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer