views:

31

answers:

1

dears

does anyone knows if tomcat can restrict access to certain application by IP address (like apache .htaccess )?

hope someone can help me ?

regads

+4  A: 

You add a Valve to the Context in context.xml (specifically, org.apache.catalina.valves.RemoteAddrValve). See the docs on Remote Host Filters.

skaffman