最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

如何驗(yàn)證IP地址?

 更新時(shí)間:2006年11月16日 00:00:00   作者:  

 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

相關(guān)文章

最新評論

贺州市| 长治市| 黄冈市| 乳山市| 育儿| 小金县| 黑山县| 驻马店市| 略阳县| 邹城市| 辛集市| 靖安县| 城口县| 堆龙德庆县| 西丰县| 胶南市| 西峡县| 安仁县| 太湖县| 穆棱市| 行唐县| 卓尼县| 惠安县| 灌南县| 侯马市| 玛沁县| 凌云县| 鞍山市| 连云港市| 华亭县| 延川县| 威信县| 彭山县| 漳州市| 陆良县| 桃江县| 财经| 老河口市| 天镇县| 勃利县| 龙南县|