The users ip address is stored in the environment variable $REMOTE_ADDR, if you want to resolve the domain name for that ip (if any) use: // PHP Code $domain = GetHostByName($REMOTE_ADDR);