<%
dim sql_injdata,sql_inj,sql_get,sql_data,SQL_Post
SQL_injdata = "'|and|exec|insert|select|delete|update|count|*|chr|mid|master|truncate|char|declare|select|or" 
SQL_inj = split(SQL_Injdata,"|")
'防止Get方法注入 
If Request.QueryString<>"" Then  
For Each SQL_Get In Request.QueryString  
For SQL_Data=0 To Ubound(SQL_inj)
If instr(Request.QueryString(SQL_Get),Sql_Inj(Sql_DATA))>0 Then
   If Ucase(Request.QueryString(SQL_Get))=Ucase(Sql_Inj(Sql_DATA)) Then
    Response.Write "<Script Language=javascript>alert('请不要在参数中包含非法字符尝试注入！');history.back(-1)</Script>" 
    Response.end  
   End If
end if  
next  
Next  
End If  
'防止Post方法注入 
If Request.Form<>"" Then  
For Each Sql_Post In Request.Form  
For SQL_Data=0 To Ubound(SQL_inj)  
if instr(Request.Form(Sql_Post),Sql_Inj(Sql_DATA))>0 Then
   If Ucase(Request.Form(Sql_Post))=Ucase(Sql_Inj(Sql_DATA)) Then
    Response.Write "<Script Language=javascript>alert('请不要在参数中包含非法字符尝试注入');history.back(-1)</Script>"  
    Response.end 
   End If 
end if  
next  
next  
end if
%>