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

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 map:select type=parameter map:parameter name=parameter-selector-test value={request:remoteAddr} / map:when test=127.0.0.1 !-- actions for this

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 map:select type=parameter map:parameter name=parameter-selector-test value={request:remoteAddr} / map:when test=127.0.0.1

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: map:matchers default=wildcard map:matcher name=regular src=test.RegexMatcher pattern^192\.168\.\d+\.\d+/pattern /map:matcher /map:matchers and in your pipeline: map:match

Re: Restricting access by IP address

2009-09-10 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 map:select type=parameter map:parameter name=parameter-selector-test value={request:remoteAddr} / map:when test=127.0.0.1 !-- actions for this ip -- /map:when

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

Restricting access by IP address

2009-09-09 Thread Peter Flynn
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 internally to the organisation. I can't see any way to do this using the authentication framework. Are there other ways to implement IP address

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

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 VirtualHost *:80 ServerAdmin pfl...@ucc.ie ProxyPreserveHost On

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