Acunetix Web Vulnerability Scanner 是一款國外產的及其優秀的掃描工具,可以幫忙挖掘網站內的諸多漏洞,包括常見的SQLinjection,XSS(很多自認為牛人的就喜歡用WVS掃站發現XSS就公布說是他發現的...)。既然WVS這么牛,那咱們就不給他訪問網站的機會,像堵SQL注入一樣來堵住它。
<% var StopScan="== WVS PLS GO AWAY!BY oldjun! =="; var requestServer=String(Request.ServerVariables("All_Raw")).toLowerCase(); if(Session("stopscan")==1){ Response.Write(StopScan); Response.End; } if(requestServer.indexOf("acunetix")>0){ Response.Write(StopScan); Session("stopscan")=1; Response.End; } %>
2.ASP(VBscript)版,一般的asp用戶可以用這個,包含到conn.asp即可:
復制代碼 代碼如下:
<% Dim StopScan,RequestServer StopScan="== WVS PLS GO AWAY!BY oldjun! ==" RequestServer=Lcase(Request.ServerVariables("All_Raw")) If Session("stopscan")=1 Then Response.Write(StopScan) Response.End End If If instr(RequestServer,"acunetix") Then Response.Write(StopScan) Session("stopscan")=1 Response.End End If %>