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

首頁 > 學院 > 開發設計 > 正文

檢查來訪IP是否合法的實際應用

2019-11-18 22:01:46
字體:
來源:轉載
供稿:網友
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


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 通榆县| 黄浦区| 铁岭市| 琼中| 香港| 阿合奇县| 胶南市| 东乌珠穆沁旗| 海南省| 和顺县| 自治县| 巧家县| 旅游| 尉犁县| 玉门市| 噶尔县| 阳山县| 台前县| 临夏市| 兴国县| 法库县| 连城县| 柞水县| 洪泽县| 临沧市| 慈利县| 青河县| 开封市| 易门县| 瓮安县| 大洼县| 营口市| 南宫市| 永城市| 牟定县| 阳泉市| 乡城县| 宁蒗| 盘锦市| 祁阳县| 潮州市|