4月30
ASP语言做了个站
1、网站http://www.xxx.com直接在浏览器里可以打开
2、在某个WEB站点上链接到http://www.xxx.com的链接无法打开
3、本地测试,做了一个http://www.xxx.com的链接可以打开
最后发现,在CONN.ASP中有这个判断,去掉问题解决!
dim server_v1,server_v2
server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
If server_v1<>"" Then
if mid(server_v1,8,len(server_v2))<>server_v2 then
Response.Redirect "/index.asp"
end if
End if
最后编辑: tommyhu 编辑于2009/04/30 15:51
1、网站http://www.xxx.com直接在浏览器里可以打开
2、在某个WEB站点上链接到http://www.xxx.com的链接无法打开
3、本地测试,做了一个http://www.xxx.com的链接可以打开
最后发现,在CONN.ASP中有这个判断,去掉问题解决!
dim server_v1,server_v2
server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
If server_v1<>"" Then
if mid(server_v1,8,len(server_v2))<>server_v2 then
Response.Redirect "/index.asp"
end if
End if
最后编辑: tommyhu 编辑于2009/04/30 15:51

最牛的键盘钢琴,附几十个经典曲谱!
推荐:最新高效增加网站外链方法大全





