KronnorK
KronnorK

Reputation: 539

how to block ranges of ip addresses from tomcat6?

I need to block country specific Ip ranges.. I tried blocking my own Ip address for an instance but it didn't happen.

I used the "Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127.0.0.1" deny=""" code inside the host tag in tomcat6 serverl.xml but it didnt help...

Please help me resolve the issue.

Upvotes: 0

Views: 271

Answers (1)

Olaf
Olaf

Reputation: 6289

I believe that if you specified allow, you should not specify deny. I believe deny has the precedence and deny="" allows anyone to connect.

Upvotes: 2

Related Questions