ACCESS数据库防下载另类方法
添加数据库名如.MDB的扩展映射
IIS属性---主目录---配置---映射---应用程序扩展--添加,到了!在这里添加.mdb文件的应用解析。扩展名当然填入.mdb,还剩两个框可以动:可执行文件和动作,选择的可执行文件DLL(或EXE等)可以是任意的,甚至可以选择asp.dll!唯一的要求就是必须真实存在!否则就"确定"不了了;本来这样差不多就可以了,设置为"全部动作"也无所谓,但是为了确保万无一失(现在的高手多啊),我们选择限于,再来点BT的:黑客防线。我管你填什么,只要有字就行,不能为空!
最终结果如图1:

用浏览器下载数据库试试,效果出来了:
HTTP 错误 403 - 禁止访问
还不死心?换FLASHGET,始终出现:
有错误发生!
怎么样?简单便捷吧。
Asp限制IP访问''允许的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 "禁止访问"
exit function
end if
for i=0 to ubound(ipstr)
if cint(allow1(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))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
%>