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

明輝手游網(wǎng)中心:是一個免費提供流行視頻軟件教程、在線學(xué)習(xí)分享的學(xué)習(xí)平臺!

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

[摘要]<% ’獲取訪問者的地址 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
%>



主站蜘蛛池模板: 中文字幕日韩精品中文区 | 欧美性黑人极品hd网站 | 深爱五月激情五月 | 伊人中文字幕 | 中文字幕在线精品视频入口一区 | 小小的日本动漫在线观看免费高清 | 在线播放国产色视频在线 | 伊人影视传媒有限公司 | 日韩不卡一级毛片免费 | 青青草原网站在线观看 | 午夜视频在线观看免费高清 | 亚洲男人的天堂网站 | 五月婷婷深爱 | 亚洲欧洲日韩在线 | 天天精品| 色一欲一性一乱一区二区三区 | 日日干日日 | 亚洲精品色婷婷在线影院麻豆 | 天天看天天射天天视频 | 四虎在线观看免费永久 | 伊人操| 亚洲欧洲综合在线 | 欧美特黄a级高清免费看片 欧美特黄a级高清免费大片 | 全国男人的天堂天堂网 | 婷婷精品在线 | 手机看片91精品一区 | 天天射日日操 | 伊人狠狠 | 日本韩国欧美在线观看 | 婷婷色九月综合激情丁香 | 亚洲精品国产福利在线观看 | 五月激情综合丁香色婷婷 | 色精品| 日韩在线成人 | 自偷自拍亚洲综合精品 | 在线天堂最新版资源 | 青草久久久 | 色网址在线 | 亚洲精品第三页 | 午夜大片免费完整在线看 | 午夜视频你懂的 |