人人做人人澡人人爽欧美,国产主播一区二区,久久久精品五月天,羞羞视频在线观看免费

當(dāng)前位置:蘿卜系統(tǒng)下載站 > 技術(shù)開發(fā)教程 > 詳細(xì)頁面

asp中對ip進(jìn)行過濾局限函數(shù)

asp中對ip進(jìn)行過濾局限函數(shù)

更新時間:2022-08-18 文章作者:未知 信息來源:網(wǎng)絡(luò) 閱讀次數(shù):

<%
’獲取訪問者的地址
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 "IP地址段出錯!"
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
%>

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統(tǒng)下載排行

網(wǎng)站地圖xml | 網(wǎng)站地圖html
主站蜘蛛池模板: 英吉沙县| 大名县| 巍山| 漳平市| 内丘县| 鲁甸县| 翁牛特旗| 花垣县| 若尔盖县| 阜康市| 略阳县| 咸宁市| 甘南县| 漠河县| 平乐县| 遂川县| 丰县| 铜川市| 儋州市| 寿光市| 高清| 色达县| 和龙市| 收藏| 乌拉特后旗| 和顺县| 玉门市| 阿荣旗| 海林市| 晋中市| 伊金霍洛旗| 莱西市| 邻水| 巨野县| 拉萨市| 通江县| 凌云县| 德安县| 疏附县| 嘉峪关市| 洛宁县|