Re: Restricting access by IP address

2009-09-15 Thread Peter Flynn
Thomas Markus wrote: try a generic RegexMatcher (all untested :) ) I solved it temporarily by simply passing the IP address into the XSLT stylesheet and doing the substringing there: that also let me output a suitably-formatted eror message for off-siters. Thanks for your help. ///Peter i

Re: Restricting access by IP address

2009-09-14 Thread Thomas Markus
try a generic RegexMatcher (all untested :) ) greets thomas in your sitemap add this to components with your pattern: ^192\.168\.\d+\.\d+ and in your pipeline: package test; import java.util.HashMap; import java.util.Map; import java.util.regex.Pattern; import org.apache.ava

Re: Restricting access by IP address

2009-09-14 Thread Peter Flynn
Peter Flynn wrote: Thomas Markus wrote: hi, look at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#access or use a matcher/selector in your sitemap That look like the right approach...except I can't find any documentation at http://cocoon.

Re: Restricting access by IP address

2009-09-14 Thread Peter Flynn
Thomas Markus wrote: hi, look at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#access or use a matcher/selector in your sitemap That look like the right approach...except I can't find any documentation at http://cocoon.apache.org/2.2/core-

Re: Restricting access by IP address

2009-09-10 Thread Alexander Daniel
Another option is to use servlet filters [1] if you prefer to implement the access restriction in Java. Alex [1] http://java.sun.com/products/servlet/Filters.html On Sep 10, 2009, at 8:47 , Thomas Markus wrote: hi, look at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#access or use

Re: Restricting access by IP address

2009-09-09 Thread Thomas Markus
hi, look at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#access or use a matcher/selector in your sitemap regards thomas Peter Flynn schrieb: > Jeroen Reijn wrote: >> Hi Peter, >> >> have you also considered doing this with a webserver in fro

Re: Restricting access by IP address

2009-09-09 Thread Jeroen Reijn
Hi Peter, i'm not really a sysadmin, so I'm no expert on Apache configurations, but can't you use the Location directive to handle this? http://httpd.apache.org/docs/2.0/mod/core.html#location Otherwise if you would want to solve it in Cocoon, I guess a combination of input modules and a sel

Re: Restricting access by IP address

2009-09-09 Thread Peter Flynn
Jeroen Reijn wrote: Hi Peter, have you also considered doing this with a webserver in front of your cocoon application? Yes, we currently front Tomcat with Apache httpd as a virtual host, but it's at the top level, eg ServerAdmin pfl...@ucc.ie ProxyPreserveHost On ProxyPass /

Re: Restricting access by IP address

2009-09-09 Thread Jeroen Reijn
Hi Peter, have you also considered doing this with a webserver in front of you cocoon application? Regards, Jeroen Peter Flynn wrote: I have developed an RSS feed summarising posts to an internal mailing list, but I need to restrict access to it by IP address so that it is usable only inter