《ASP限制IP访问代码(共2页).doc》由会员分享,可在线阅读,更多相关《ASP限制IP访问代码(共2页).doc(2页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、精选优质文档-倾情为你奉上ASP限制IP访问代码cint(allow2(0) then 判断IP地址段是否合*response.write 禁止访问exit functionend iffor i=0 to ubound(ipstr)if cint(allow1(i)cint(allow2(i) thenif cint(allow1(i)=cint(ipstr(i) thencheck(i)=truecheckip=trueexit forelseif cint(ipstr(i)cint(allow2(i) thencheck(i)=falsecheckip=falseexit forelse
2、check(i)=truecheckip=trueend ifend ifend ifelseif cint(allow1(i)cint(ipstr(i) or cint(allow1(i)cint(ipstr(i) thencheck(i)=falsecheckip=falseif iubound(ipstr) thenexit forend ifelsecheck(i)=trueend ifend ifnextif (check(0)=true and check(1)=true and check(2)=true and check(3)=false) and (cint(allow2(2)cint(ipstr(2) thencheckip=trueend ifend function%专心-专注-专业