源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

asp实现防止从外部提交数据的三种方法第1/3页

  • 时间:2022-01-26 15:56 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:asp实现防止从外部提交数据的三种方法第1/3页
防止从外部提交数据的方法 第一种做法,屏蔽特殊字符和关键字 fqys=request.servervariables("query_string")  dim nothis(18)  nothis(0)="net user"  nothis(1)="xp_cmdshell"  nothis(2)="/add"  nothis(3)="exec%20master.dbo.xp_cmdshell"  nothis(4)="net localgroup administrators"  nothis(5)="select"  nothis(6)="count"  nothis(7)="asc"  nothis(8)="char"  nothis(9)="mid"  nothis(10)="'"  nothis(11)=":"  nothis(12)=""""  nothis(13)="insert"  nothis(14)="delete"  nothis(15)="drop"  nothis(16)="truncate"  nothis(17)="from"  nothis(18)="%"  errc=false  for i= 0 to ubound(nothis)  if instr(FQYs,nothis(i))<>0 then  errc=true  end if  next  if errc then  response.write "<script language=""javascript"">"  response.write "parent.alert('很抱歉!你正在试图攻击本服务器或者想取得本服务器最高管理权!将直接转向首页..');"  response.write "self.location.href='default.asp';"  response.write "</script>"  response.end  end if 
当前1/3页 [b]1[/b][url=http://www.1sucai.cn/article/12894_2.htm]2[/url][url=http://www.1sucai.cn/article/12894_3.htm]3[/url][url=http://www.1sucai.cn/article/12894_2.htm]下一页[/url][url=http://www.1sucai.cn/article/12894_all.htm]阅读全文[/url]
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部