userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")If userip = "" Thenuserip = Request.ServerVariables("REMOTE_ADDR")end if