Does anyone know if Tomcat can restrict access to certain application by IP address (like Apache's .htaccess)?
.htaccess
You add a Valve to the Context in context.xml (specifically, org.apache.catalina.valves.RemoteAddrValve). See the docs on Remote Host Filters.
Valve
Context
context.xml
org.apache.catalina.valves.RemoteAddrValve
2.1m questions
2.1m answers
60 comments
57.0k users