[Zope] IP restriction

Phil Harris phil.harris@zope.co.uk
Fri, 3 Aug 2001 13:00:00 +0100


REQUEST.REMOTE_ADDR only has the remote ip address in if you're not using
some sort of proxy in front of Zope.

If you're using Squid or Apache with ProxyPass or Rewrite[P] you're going=
 to
need to do something else.

If you're using a later version of Apache you could try setting the Proxy=
Via
flag on in your httpd.conf.  It doesn't seem to work for me but YMMV.

hth

Phil

----- Original Message -----
From: "Tino Wildenhain" <tino@wildenhain.de>
To: "ruben" <zope@amutis.com>; "Zope" <zope@zope.org>
Sent: Friday, August 03, 2001 12:44 PM
Subject: Re: [Zope] IP restriction


> Hi,
>
> --On Freitag, 3. August 2001 12:18 +0200 ruben <zope@amutis.com> wrote:
>
> > Hello.
> >
> > I'm new in this list, and I hope we can help us.
> >
> > My first question is:
> >
> > I want that only a group of IP's can acces to a directory and his
> > subdirectories.
> > Do you now how can I do this restriction?
> > I dont`t want that the user login zope, I only want to see his IP and
> > permit or not permit pass it to the directory.
>
> I'm currently working on it. Including implementing a real IP specific
> ACL (not the current pattern-matching on the address-string)
>
> However, if you need it quickly, you can make a PythonScript
> which checks REQUEST.REMOTE_ADDR or something (see REQUEST)
> and decides to do nothing or raise an Unauthorized Exception.
>
> Regards
> Tino
> >
> > Thanks.
> >
> >
> > Rub=E9n
> >
> >               )
> >             (
> >               )
> >             (
> >               )
> >
> >
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )