How to only allow access inside a local network
From Resin 3.0
In Resin 4.0, you can restrict access to a URL for only the local network. For example, the /resin-admin only allows local access by default.
<web-app xmlns="http://caucho.com/ns/resin" xmlns:sec="urn:java:com.caucho.security"> <sec:Allow url-pattern="/admin/*"> <sec:IfNetwork> <value>192.168.0.0/16</value> <value>127.0.0.1</value> </sec:IfNetwork> </sec:Allow> </web-app>