Tomcat Block IP

Change the <Tomcat install path>\conf\context.xml file test in Tomcat 6 and Tomcat 7
Add following context between <Context> tag
<Valve className="org.apache.catalina.valves.RemoteAddrValve" deny="<IP Address>"/>
Example: <Valve className="org.apache.catalina.valves.RemoteAddrValve" deny="1\.2\.3\.4"/>

Comments

Popular posts from this blog

Nginx Proxy & Load Balance & LNMP

Snort+barnyard2+Snorby CentOS 6.5_64 Installation

ORACLE Error