Thank you, that was helpful.
However, using .htaccess means I would have to configure it for each website individually.
I'm looking for a way to block bad bots at the server level, which is why I'm trying ModSecurity.
At the website level, I can already block them using Cloudflare.