How to only allow access inside a local network

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(New page: <web-app xmlns="http://caucho.com/ns/resin" xmlns:sec="urn:java:com.caucho.security"> <sec:Allow url-pattern="/admin/*"> <sec:IfNetwork> <value>19...)
 
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
[[Category: HowTo]] [[Category: Security]]
 +
 +
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"
 
  <web-app xmlns="http://caucho.com/ns/resin"
 
               xmlns:sec="urn:java:com.caucho.security">
 
               xmlns:sec="urn:java:com.caucho.security">

Latest revision as of 17:42, 15 January 2009


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>
Personal tools