We have a Debian based server running Tomcat behind a load-balanced webserver. As it's for development, we have added basic authentication in tomcat with username and password. But we are getting so much spam requests with crazy combinations that our server is overloading. Any way we can block that IP or some limiting factor after 2-3 attempts. Thank you.
I don't have any code here to show, as it's just username passwords in tomcat-users.xml