asp下的風(fēng)訊用的SQL通用防注入模塊提供了
更新時(shí)間:2007年10月29日 20:37:00 作者:
復(fù)制代碼 代碼如下:
<%
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(|master."
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
%>
相關(guān)文章
asp中記錄集對(duì)象的getrows和getstring用法分析
asp中記錄集對(duì)象的getrows和getstring用法分析,需要的朋友可以參考下2012-03-03ASP動(dòng)態(tài)生成的javascript表單驗(yàn)證代碼
ASP動(dòng)態(tài)生成的javascript表單驗(yàn)證代碼...2006-11-11ASP中經(jīng)常使用的SQL語(yǔ)句與教程說(shuō)明
ASP中經(jīng)常使用的SQL語(yǔ)句與教程說(shuō)明...2007-03-03ASP.Net?MVC利用NPOI導(dǎo)入導(dǎo)出Excel的示例代碼
這篇文章主要介紹了ASP.Net?MVC利用NPOI導(dǎo)入導(dǎo)出Excel的問題記錄,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2022-05-05asp下實(shí)現(xiàn)格式化文件大小以MB顯示的函數(shù)
asp下實(shí)現(xiàn)格式化文件大小以MB顯示的函數(shù)...2007-08-08