

<%
StrTemp=request.servervariables("server_name")&request.servervariables("url")&"?"&Request.QueryString
StrTemp = LCase(StrTemp) 
If Instr(StrTemp,"select%20") or Instr(StrTemp,"insert%20") or Instr(StrTemp,"delete%20from") or Instr(StrTemp,"count(") or Instr(StrTemp,"drop%20table") or Instr(StrTemp,"update%20") or Instr(StrTemp,"truncate%20") or Instr(StrTemp,"asc(") or Instr(StrTemp,"mid(") or Instr(StrTemp,"char(") or Instr(StrTemp,"xp_cmdshell") or Instr(StrTemp,"exec%20master") or Instr(StrTemp,"net%20localgroup%20administrators") or Instr(StrTemp,"net%20user") or Instr(StrTemp,"%20or%20") or Instr(StrTemp,"'") or Instr(StrTemp,"%20") or Instr(StrTemp,"""") or Instr(StrTemp,"“") or Instr(StrTemp,"”")  or Instr(StrTemp,":") or Instr(StrTemp,"：")  or Instr(StrTemp,";") or Instr(StrTemp,"；")  or Instr(StrTemp,",") or Instr(StrTemp,"，")  or Instr(StrTemp,"（")  or Instr(StrTemp,"）")  or Instr(StrTemp,"、")  or Instr(StrTemp,"\")  or Instr(StrTemp,"`")  or Instr(StrTemp,"^")  or Instr(StrTemp,"*")  or Instr(StrTemp,"~")  or Instr(StrTemp,"-") or Instr(StrTemp,"%27") then 
Response.Write "<script language='javascript'>alert('对不起，不可以包含非法字符！');history.back();</script>" 
Response.end
End If 

	dim conn
	dim connstr
	dim db
	db="../../../include/#adsf#@$.mdb"
	Set conn = Server.CreateObject("ADODB.Connection")
	connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(db)
	conn.Open connstr
	
sub CloseConn()
	conn.close
	set conn=nothing
end sub


%>

