I do this in my "on execute start" method.
_request{"ip"} := get request info("X-Forwarded-For") //proxy direct
if (_request{"ip"} = "")
_request{"ip"} := get request info("*remote address") //8010
end if
_request{"inurl"} := full requested url
At least in my situation (Apache 2), it puts the ip address of the
host in request info("X-Forwarded-For"). If you access local (8080),
it would be in remote address.
You can do a "a4d.debug.dump collection(request info) and see if it
is there.
Steve Alex
_______________________________________________
Steve,
Excellent, X-Forwarded-For was exactly what I was looking for :)
Many many thanks.
James.
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/