The bots got bold: almost 17,000 comments in 4 days, even though anti-spam plugins were installed. I immediately noticed that the load on some servers had nearly doubled, and MySQL already held a huge database of IPs, emails and other junk from the “anti-spam” plugins. Looking at that nonsense, I decided to get rid of the plugins and cool the bots down. Comments are moderated manually and anyone can leave one without a captcha.
The bots got bold: almost 17,000 comments in 4 days, even though anti-spam plugins were installed.
I immediately noticed that the load on some servers had nearly doubled, and MySQL already held a huge database of IPs, emails and other junk from the “anti-spam” plugins. Looking at that nonsense, I decided to get rid of the plugins and cool the bots down.
Comments are moderated manually and anyone can leave one, no captcha. But among the comments the bots dumped over those 4 days, it's easy to miss the important ones.
WordPress is used on a dozen projects I have to work with, and checking all those comments is unrealistic. So I decided to try a very simple approach. Bots usually post into ready-made WordPress forms, so changing the textarea id to something else might solve the whole problem. I tried it on a couple of projects and the flow of junk comments immediately dropped to zero, while normal ones went through without a hitch.
In functions.php we make the simplest replacement:
As it turned out, the bots are pretty dumb, and this primitive form tweak left them stumped.
I hope this simple solution helps you get rid of spam too, “without extra plugins”.
Back at the end of last year the node editor got a new design, but I never got around to writing about it. Besides the design, bugs were fixed and performance improved.