C#技术百科
问问你的心你有没有信心 做事情要专一坚定,执着

myIp = Array("127.0.0.1","goudiannao")
myHou = new Array("",".com")
myDirect ="http://www.goudiannao.com/"
ip= request.ServerVariables("HTTP_HOST")
j=0
for i=0 to ubound(myIp)
'Response.Write(i&"--"&myIp(i)&"<br>")
if InStr(ip,myIp(i)&myHou(i))>0 then
'Response.Write(myIp(i)&"==")
j=j+1
end if
next
if j<1 then
response.Redirect(myDirect)
end if
posted on 2011-03-06 14:24  王德田  阅读(218)  评论(0编辑  收藏  举报