'*******處理country or local為空的情況,使用了按id倒排(why?因為根據IP地址表可知,先列大地區的ip段,例如先列出歐洲的062.000.000.000~062.255.255.255,再列英國等IP段)
'對后面三段IP進行處理,是否在IP表內
if (sec>=(mid(rs("startip"),5,3)) and (sec<=mid(rs("endip"),5,3))) and (thr>=(mid(rs("startip"),9,3)) and (thr<=mid(rs("endip"),9,3))) and (fou>=(mid(rs("startip"),13,3)) and (fou<=mid(rs("endip"),13,3))) then