[ic] IP address of user

Steve Graham interchange-users@interchange.redhat.com
Tue Apr 23 20:38:01 2002


Thanks for the suggestion.

I found this after searching the back messages:
http://interchange.redhat.com/archive/interchange-users/2000/msg04436.html

is [data session ohost] no longer going to be supported? - it looks it will 
also do the trick.

If it is still supported I will add this to the comments on the data tag 
information page.

-Steve



>From: "Kevin Walsh" <kevin@cursor.biz>
>Reply-To: interchange-users@interchange.redhat.com
>To: <interchange-users@interchange.redhat.com>
>Subject: RE: [ic] IP address of user
>Date: Tue, 23 Apr 2002 23:38:34 +0100
>
> >
> > I am trying to restrict the admin section of our catalog to specific 
>local
> > ip address using the .access & .access_gate.
> >
> > Here is what I have in the .access_gate file, but host will do a dns 
>reverse
> > lookup to determine the domain (if not local), and I just need the ip
> > address. Any suggestions?
> >
> > *: [if session host eq '196.168.11.11']Yes[else]No[/else][/if]
> >
>Try creating a UserTag that looks something like this:
>
>     UserTag remote_access Order addr
>     UserTag remote_access Routine <<EOF
>     sub {
>         my $addr = shift or return 'No';
>         return $CGI::remote_addr eq $addr ? 'Yes' : 'No';
>     }
>     EOF
>
>Then use this instead of what you quoted:
>
>     *: [remote_access addr="196.168.11.11"]
>
>You could also modify the UserTag to treat the "ip" parameter
>like a regex, allowing multiple IPs to be checked in one go.
>
>--
>    _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
>   _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
>  _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
>_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/
>
>_______________________________________________
>interchange-users mailing list
>interchange-users@interchange.redhat.com
>http://interchange.redhat.com/mailman/listinfo/interchange-users




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.