六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

asp中對ip進行過濾局限函數

[摘要]<% ’獲取訪問者的地址 ip=Request.ServerVariables("REMOTE_ADDR") ’允許的IP地址段為10.0.0.0~10.68.63.255 allowip1="10.0.0.0" allowip2="10....
<%
’獲取訪問者的地址
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
%>



主站蜘蛛池模板: 色狠狠狠色噜噜噜综合网 | 青青草原国产 | 亚洲手机在线观看 | 天天操天天摸天天碰 | 婷婷性| 日日碰碰 | 青青青在线视频人视频在线 | 日日夜夜人人 | 亚洲高清资源在线观看 | 欧美一区二区三区日韩免费播 | 欧美一区在线播放 | 日韩精品小视频 | 日本高清在线观看视频 | 日韩精品亚洲人成在线观看 | 网站一级片 | 日韩精品欧美激情国产一区 | 欧美一线高本道高清在线 | 欧美怡春院一区二区三区 | 青青国产成人精品视频 | 亚洲 欧美 日韩中文字幕一区二区 | 色噜噜视频 | 深夜福利免费视频 | 四虎影视免费看 | 日韩色中色| 青青草美女 | 亚洲高清一区二区三区四区 | 日韩在线二区 | 欧美影院在线观看在线观看看 | 日本视频一区在线观看免费 | 色噜噜狠狠大色综合 | 日韩欧美爱爱 | 青青青在线视频国产 | 日本系列 1页 亚洲系列 | 天天躁狠狠躁夜夜躁2021 | 在线看91| 伊人久久婷婷丁香六月综合基地 | 亚洲高清二区 | 色噜噜视频在线观看 | 四虎精品永久免费 | 亚洲综合图区 | 午夜激情在线观看 |