十一月
  ★ 博客搜索|Search
Sword's Blog
  首页 |
ASP实现禁止从外部提交数据
作者:Sword's Blog 发表时间:2005-11-2
<%
server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
if mid(server_v1,8,len(server_v2))<>server_v2 then
%>
警告!你正在从外部提交数据!!请立即终止!!
<%
Response.Redirect "index.asp"
end if
%>
[所属栏目:Web相关] | [返回首页]
共 1 篇日志 | 每页 1 篇 

≡≡≡≡≡ 评论(共 {Count}条) 我要评论
·{CommentAuthor} {CommentEmail} {CommentUrl} {CommentIp} {CommentTime}
{CommentContent}
  站长执笔
5DBlog主页