精华区 [关闭][返回]

当前位置:月光软件>>讨论区精华>>〖软件开发〗>>● ASP>>★ASP的文献★>>在ASP网页中列出保密的IP

主题:在ASP网页中列出保密的IP
发信人: lonelyboy.cc(风在发端的少年)
整理人: wuga(2002-12-19 12:15:15), 站内信件
'(c) www.lonelygirl.cc 2001/08/08 
  
ip_ori="61.202.1.1" 

      if ip_ori<>"" then 
        for i=1 to len(ip_ori) 
          tmp_str=mid(ip_ori,i,1) 
          if tmp_str="." then j=j+1 
          if j>1 then 
             if tmp_str="." then 
               Response.Write(".") 
             else 
               Response.Write("*") 
             end if 
          else 
            Response.Write(tmp_str) 
          end if 
        next 
      else 
        Response.Write("xxx.xxx.xxx.xxx") 
      end if




----

http://www.lonelygirl.cc

个人独力编写的超级社区       

[关闭][返回]






转载请注明:转载自 月光程序代码网 [ http://www.moon-soft.com ]