国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 編程設計 > 正文

如何驗證IP地址?

2020-06-19 13:41:21
字體:
來源:轉載
供稿:網友

 sub chkIP(boardid)
   dim rsIP
   dim ipArr
   dim ignored
   dim i
   dim ip
   dim sql

   ip=Request.ServerVariables("REMOTE_ADDR")   
   ignored=false
   if not isempty(boardid) then   
     sql="select ignoreip from board where boardid="&cstr(boardid)
     set rsIP=conn.execute(sql)
     if not (rsIP.eof and rsIP.bof) then
      if instr(cstr(rsIP("ignoreip")&""),chr(13)&chr(10)) then
        iparr=split(rsIP("ignoreip"),chr(13)&chr(10))
        for i=0 to ubound(iparr)
          if trim(iparr(i))<>"" and left(ip,len(trim(iparr(i))))=trim(iparr(i)) then
           ignored=true
           exit for
          end if
        next
      else
        iparr=rsIP("ignoreip")
        if ip=trim(iparr) then
         ignored=true
        end if
      end if
     end if
     rsIP.close
   end if
   if ignored then
     response.write "<script language=javascript>window.location.href='ignoreip.htm'</script>"
   end if
 end sub

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 客服| 静安区| 迁安市| 保亭| 瑞安市| 辉南县| 巫山县| 延川县| 伊川县| 辽源市| 荃湾区| 福建省| 界首市| 阳西县| 库尔勒市| 且末县| 开化县| 茶陵县| 南丹县| 冕宁县| 重庆市| 雅安市| 白玉县| 达州市| 凤山市| 苍溪县| 东台市| 印江| 防城港市| 山阴县| 筠连县| 靖州| 铜鼓县| 阜康市| 彭水| 梁河县| 大厂| 广东省| 赫章县| 永寿县| 宁陕县|