婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > Asp下實現限制IP訪問的程序代碼

Asp下實現限制IP訪問的程序代碼

熱門標簽:辦理400電話一年多少錢 為什么外呼系統需要預存話費呢 咸陽銷售外呼系統 企數外呼系統能用多久 寧夏怎么申請400電話 蘭州智能語音電銷機器人功能 離線電子地圖標注軟件注冊 外呼回撥系統圖片 常用地圖標注范圍點
%
''獲取訪問者的地址
ip=Request.ServerVariables("REMOTE_ADDR") 

''允許的IP地址段為10.0.0.0~10.68.63.255
allowip1="10.0.0.0"
allowip2="10.68.10.71"
response.write checkip(ip,allowip1,allowip2)
function checkip(ip,allowip1,allowip2)
dim check(4)
checkip=false
ipstr=split(ip,".")
allow1=split(allowip1,".")
allow2=split(allowip2,".")
if cint(allow1(0))>cint(allow2(0)) then ''判斷IP地址段是否合法
response.write "禁止訪問"
exit function
end if
for i=0 to ubound(ipstr)
if cint(allow1(i))cint(allow2(i)) then
if cint(allow1(i))=cint(ipstr(i)) then
check(i)=true
checkip=true
exit for
else
if cint(ipstr(i))cint(allow2(i)) then
check(i)=true
checkip=true
exit for
else
if cint(ipstr(i))>cint(allow2(i)) then
check(i)=false
checkip=false
exit for
else
check(i)=true
checkip=true
end if
end if
end if
else
if cint(allow1(i))>cint(ipstr(i)) or cint(allow1(i))cint(ipstr(i)) then
check(i)=false
checkip=false
if i>ubound(ipstr) then
exit for
end if
else
check(i)=true
end if
end if
next
if (check(0)=true and check(1)=true and check(2)=true and check(3)=false) and (cint(allow2(2))>cint(ipstr(2))) then
checkip=true
end if
end function
%>
您可能感興趣的文章:
  • ASP.net做的IP訪問限制
  • 用ASP代碼實現對IP的訪問限制的代碼
  • 用asp腳本實現限制IP訪問
  • 推薦的用Asp實現屏蔽IP地址訪問的代碼
  • ADSI+ASP添加IP到IIS禁止訪問列表中
  • 記錄游客頁面訪問IP的簡易實現代碼 (asp.net+txt)
  • 通過ASP禁止指定IP和只允許指定IP訪問網站的代碼
  • Asp限制IP訪問 阻止某一個IP段禁止訪問本站的代碼
  • asp實現限制一個ip只能訪問一次的方法

標簽:泰州 鐵嶺 麗江 昆明 溫州 咸陽 昌都 家電維修

巨人網絡通訊聲明:本文標題《Asp下實現限制IP訪問的程序代碼》,本文關鍵詞  Asp,下,實現,限制,訪問,的,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《Asp下實現限制IP訪問的程序代碼》相關的同類信息!
  • 本頁收集關于Asp下實現限制IP訪問的程序代碼的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 桦南县| 依兰县| 金溪县| 建宁县| 沁源县| 化隆| 安徽省| 泗阳县| 潜山县| 会同县| 自贡市| 西青区| 洛隆县| 会理县| 安仁县| 灌云县| 崇文区| 慈溪市| 巴东县| 江华| 钟祥市| 岫岩| 扶余县| 浦北县| 开远市| 承德市| 鲜城| 定西市| 尖扎县| 广昌县| 涟水县| 灌阳县| 旬阳县| 琼海市| 西乌| 平潭县| 繁昌县| 丰县| 深水埗区| 扶绥县| 彭州市|