<%
call waizhan_addform()
'禁止站外提交页面和数据
sub waizhan_addform()
dim this_page_url : this_page_url=cstr(request.servervariables("HTTP_REFERER")) '获取前一个页面的全URL
dim this_page_yuming : this_page_yuming=cstr(request.servervariables("SERVER_NAME")) '获取当前页面所在服务器域名
'response.write("前一个页面的全URL:" & this_page_url & "<br />")
'response.write("当前页面所在服务器IP:" & this_page_yuming & "<br />")
if mid(this_page_url,8,len(this_page_yuming))<>this_page_yuming then
response.write("禁止外部提交数据!")
response.end()
end if
end sub
%>