开发者

how to block ranges of ip addresses from tomcat6?

开发者 https://www.devze.com 2023-03-17 00:41 出处:网络
I need to block co开发者_运维百科untry specific Ip ranges.. I tried blocking my own Ip address for an instance but it didn\'t happen.

I need to block co开发者_运维百科untry 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消