打印

[学习资料] 用Asp隐藏文件路径实现防盗链

用Asp隐藏文件路径实现防盗链

引用时就用:urlcheck就可以了
sub urlcheck
if instr(request.ServerVariables("HTTP_REFERER"),request.ServerVariables("SERVER_NAME"))=0 or request.ServerVariables("HTTP_REFERER")="" then
response.Clear
response.write("<script language=""javascript"">alert(""WARNING!\nURL WRONG!"");history.back();</script>")
response.End
end if
end sub

TOP

哦支持一下

TOP

返回顶部
〖版权(C)〗归 精品边缘-SSOSO.COM 所有,Copyright By SSOSO.COM
Powered by Discuz! Copyright © 2008-2010 精品边缘.SSOSO.COM.
Please change your screen resolution to1024 x768

当前时区 GMT+8, 现在时间是 2008-9-5 16:45 浙ICP备06012320号    
清除 Cookies - 联系我们 - www.ssoso.com 精品边缘. - Archiver - WAP