Fail2ban is not a static security policy.
It's a dynamic firewall. It ties logs to time boxed firewall rules.
You could auto ban any source that hits robots.txt on a Web server for 1h for instance. I've heard AI data scrapers actually use that to target big data rather than respect web server requests.