It's the weekend. So you know what that meansβ¦
Dealing with the gods damned fucking bots that are abusing my site because they're either vibe-coded or trying to power GenAI π
It's the weekend. So you know what that meansβ¦
Dealing with the gods damned fucking bots that are abusing my site because they're either vibe-coded or trying to power GenAI π
It's awesome how, in additional to the social, societal, environmental and capability damage that GenAI is causing, it is ALSO managing to fuck up the Internet π
Current state of Apache:
WRRWRRWRCRRWRCRRRWRRRRRRCRRRRRRRRRRRCCRWWRRRRRRRRWRCRRCWRCRRRRRC
R_RCRCRWWWR_RCRRW_RR_WR_RW_RCRR_RR_RRRRRRRRRW_R_CRCWW_CRRCRCCRRR
And if I'm reading the server status page correctly (increasing "Seconds Since" and still showing the proxy IP with no verb and path) then a lot of these requests can be 30+ seconds in and STILL not processing properly.
Meanwhile, PHP FPM has 50-70 processes open and no upper cap, and doesn't seem to be struggling π
(R=Reading Request, W=Sending Reply, C=Closing Connection, _=Open Slot)
Added a third MPM event server. All of its threads were almost immediately consumed.
I'm getting a LOT of hits from a vast swathe of different African IPs. But they look like residential and mobile IPs rather than data centres. So blocking them also blocks legitimate users π
One thing that helps reduce bot traffic?
Putting the rewrite rules that BLOCK the bot traffic BEFORE the rules that say "rewrite this pretty URL to this PHP file and stop processing further rules" π€¦
Apparently some of my extension and refactoring a week or so back actually broke it π
Back to 128 threads for Apache and I've still got spares open! Much better.
Good news: Load is WAY down today!
Turns out Fail2Ban and IP blocking is a HUGELY helpful way to keep bot traffic down, once you pick out a few patterns (like "dot files that could contain credentials")
You just need to have your server configured so that it is ACTUALLY doing the blocking, and not processing the request before it gets to the block π