防提交的页面不是本网站(非法链接到网站)

来源:互联网 发布:斗什么的直播软件 编辑:程序博客网 时间:2024/04/30 20:30
<%
  From_url 
= Cstr(Request.ServerVariables("HTTP_REFERER")) 
  Serv_url 
= Cstr(Request.ServerVariables("SERVER_NAME")) 
  
if mid(From_url,8,len(Serv_url)) <> Serv_url then 
  response.write 
"非法链接!" '防止盗链
  response.end 
  
end if 
%>