WordPress企业主题定制/开发/优化

ASP屏蔽sql语句注入的代码

首页 » ASP » ASP屏蔽sql语句注入的代码

ASP屏蔽sql语句注入的代码

<% '更多代码请访问www.3code.cn%>
<%
dim qs,errc,iii
qs=request.servervariables("query_string")
dim nothis(16)
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)="insert"
nothis(13)="delete"
nothis(14)="drop"
nothis(15)="truncate"
nothis(16)="from"
errc=false
for iii= 0 to ubound(nothis)
if instr(qs,nothis(iii))<>0 then
errc=true
end if
next
if errc then
Response.Write("对不起,非法URL地址请求!")
response.end
end if

%>

分类与标签:

ASP

,

相关项目

  • WordPress外贸企业主题

  • 最近更新

  • 热门标签