好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > asp實現防止從外部提交數據的三種方法第1/3頁

asp實現防止從外部提交數據的三種方法第1/3頁

熱門標簽:外呼系統怎么話費 地圖標注還可以做嗎 滴滴地圖標注上車點 電銷機器人采購 高質量的電銷外呼系統 無營業執照地圖標注教學 友邦互聯電銷機器人違法嗎 宿州防封外呼系統平臺 硅基電話機器人加盟
防止從外部提交數據的方法

第一種做法,屏蔽特殊字符和關鍵字

fqys=request.servervariables("query_string") 

dim nothis(18) 

nothis(0)="net user" 

nothis(1)="xp_cmdshell" 

nothis(2)="/add" 

nothis(3)="exec%20master.dbo.xp_cmdshell" 

nothis(4)="net localgroup administrators" 

nothis(5)="select" 

nothis(6)="count" 

nothis(7)="asc" 

nothis(8)="char" 

nothis(9)="mid" 

nothis(10)="'" 

nothis(11)=":" 

nothis(12)="""" 

nothis(13)="insert" 

nothis(14)="delete" 

nothis(15)="drop" 

nothis(16)="truncate" 

nothis(17)="from" 

nothis(18)="%" 

errc=false 

for i= 0 to ubound(nothis) 

if instr(FQYs,nothis(i))>0 then 

errc=true 

end if 

next 

if errc then 

response.write "script language=""javascript"">" 

response.write "parent.alert('很抱歉!你正在試圖攻擊本服務器或者想取得本服務器最高管理權!將直接轉向首頁..');" 

response.write "self.location.href='default.asp';" 

response.write "/script>" 

response.end 

end if 
123下一頁閱讀全文

標簽:雅安 七臺河 廣元 錫林郭勒盟 新余 江門 儋州 宣城

巨人網絡通訊聲明:本文標題《asp實現防止從外部提交數據的三種方法第1/3頁》,本文關鍵詞  asp,實現,防止,從外部,提交,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《asp實現防止從外部提交數據的三種方法第1/3頁》相關的同類信息!
  • 本頁收集關于asp實現防止從外部提交數據的三種方法第1/3頁的相關信息資訊供網民參考!
  • 推薦文章