[imp] Obtaining the user IP

Anil Madhavapeddy anil@recoil.org
Mon, 11 Jun 2001 11:57:54 +0100


Santiago Romero wrote:
>
>  Is there any variable or procedure to know the source where
>  a IMP user is connecting FROM?

You haven't said what version of IMP, but you can grab this information
from the global $HTTP_SERVER_VARS["REMOTE_ADDR"] if you are using
Apache.

Remember any intervening proxy servers (unless they are in IP spoofing
mode) or NAT will make this unreliable.

Anil