<% requestIP = request.ServerVariables("REMOTE_ADDR") IP = "36.161.106.161" trueURL = "http://www.baidu.com" falseURL = "http://www.google.com" ipArr = split(IP,"|") flag = false for i=0 to ubound(ipArr) if requestIP=ipArr(i) then flag=true exit for end if next if flag then response.Redirect(falseURL) else response.Redirect(trueURL) end if %>