Copy Code code as follows:
<%
Dim Fs_nosqlhack_allstr,fs_nosqlhack_str,fs_nosqlhack_comeurlget,fs_nosqlhack_comeurlpost,fs_nosqlhack_get,fs_ Nosqlhack_post,fs_nosqlhack_i
' On Error Resume Next
Fs_nosqlhack_allstr= "' |;| and |CHR (|exec |insert |select |delete from|update (|mid.)
Fs_nosqlhack_comeurlget = Request.QueryString
Fs_nosqlhack_comeurlpost = Request.Form
Fs_nosqlhack_str = Split (fs_nosqlhack_allstr, "|")
' Post
If fs_nosqlhack_comeurlpost<> "" Then
For each fs_nosqlhack_post in Request.Form
For fs_nosqlhack_i = 0 to Ubound (FS_NOSQLHACK_STR)
If Instr (LCase (Request.Form (Fs_nosqlhack_post)), Fs_nosqlhack_str (fs_nosqlhack_i)) <>0 Then
Response.Write ("error!!")
Response.End
End If
Next
Next
End If
' Get
If fs_nosqlhack_comeurlget<> "" Then
For each fs_nosqlhack_get in Request.QueryString
For fs_nosqlhack_i = 0 to Ubound (FS_NOSQLHACK_STR)
If Instr (LCase (Request.QueryString (Fs_nosqlhack_get)), Fs_nosqlhack_str (fs_nosqlhack_i)) <>0 Then
Response.Write ("error!!")
Response.End
End If
Next
Next
End If
%>