<%
'防止直接输入网址
ComeUrl=trim(request.ServerVariables("HTTP_REFERER"))
if ComeUrl="" then
response.write "
对不起,为了系统安全,不允许直接输入地址访问本页面
"
response.end
else
cUrl=trim("http://"; & Request.ServerVariables("SERVER_NAME"))
if ubound(split(ComeUrl,":"))>1 then
cUrl=cUrl & ":" & Request.ServerVariables("SERVER_PORT")
end if
cUrl=cUrl & request.ServerVariables("SCRIPT_NAME")
if lcase(left(ComeUrl,instrrev(ComeUrl,"/")))<>lcase(left(cUrl,instrrev(cUrl,"/"))) then
response.write "
对不起,为了系统安全,不允许从外部链接地址访问本页面
"
response.end
end if
end if
%>