统计在线人数...

我用的防治SQL注入的asp代码

[ 来源:不详 | 作者:neeao | 时间:2005-5-26 22:59:52 | 浏览:统计中... ]


[转载]我用的防治SQL注入的asp代码
作者:feng [勇敢的风]
来源:http://feng.cnblog.com.cn/Look.asp?logid=213
 <%
function sql_zr(str)
dim w,j
str=lcase(str)
w = "'∥%∥&∥*∥#∥@∥(∥)∥=∥and∥select∥update∥chr∥delete∥%20from∥;∥insert∥mid∥master.∥set∥chr(37)"
w = split(w,"∥") '22222222
for j = 0 to ubound(w)
if instr(str,w(j)) <> 0 then
response.redirect "../"
response.end
end if
next
end function
%>
以前没有限制大小写,现在加上了。
共有0人参与评价,平均得分:0分
评论内容只代表网友观点,与本站立场无关! 查看完整内容
   

当前在线人数
QQ:748838 MSN:allen_xia#msn.com E-mail:allenxia666#126.com QQ群:站长联盟北方区-北京(28200145) 站长联盟南方区-上海(67713522)