On 01/08/2009, at 6:23 PM, Joe Little wrote:

Think I already figured it out. One needs to first set some self- defined headers using an apache mod. Specfically setenvif

http://www.askapache.com/htaccess/setenvif.html

On Aug 1, 2009, at 12:40 AM, Joe Little <[email protected]> wrote:

Is there a way to acquire the clients ip address out of the worequest?

A few options:
1) Practical WebObjects has instructions about doing this - and GVC Frameworks has a util for handling it. Chuck would be able to point to where.

2) if using Wonder ERXRequest has remoteHost[Address|Name]
((ERXRequest)context().request()).remoteAddress();

3) (least recommended using private api) WORequest has _remoteAddress().

I been tasked to limit auths to domains/ips first, and if not otherwise known, registered users. The various apache solutions are weak since only user lookup is dynamic (backend is db/ldap) but domain/ip lookups are still only static in .htaccess files
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lachlan.deck%40gmail.com

This email sent to [email protected]

with regards,
--

Lachlan Deck

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to