破釜沉舟论坛 » WEB 开发 » 如何用“|”分隔IP啊(看代码)

2006-9-21 09:17 mzwqxing
如何用“|”分隔IP啊(看代码)

  <%
strNet="127.0.0.1"
strUserAddr=Request.ServerVariables("REMOTE_ADDR")
'如果不是该网段用户,且通过其它页面链接至该页,则返回引用页面
if strcomp(strNet,strUserAddr)<>0 then
if Request.ServerVariables("HTTP_REFERER")="" then
  Response.Write"<h2>你无权访问该页!</h2>"
  Response.end
Else
  Response.Redirect(Request.ServerVariables("HTTP_REFERER"))
End if
End if
%>

请问怎么在strNet的IP用“|”,该怎么定“|”为分隔符
请各位高手哥哥姐姐帮帮忙啦
谢谢

页: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.