开发者

how to block ranges of ip addresses from tomcat6?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜