此主题相关图片如下:微信截图_20230718134931.png
面对这种频繁的攻击,该怎么去响应才是最经济的?
1、直接显示页面不存在
With wb.AddMsgPage("","msgpage","页面发生错误!", "页面不存在" ) '生成成功提示页
.icon = "Warn" '改变图标
End With
e.WriteString(wb.Build)
2、Dim e As RequestEventArgs = args(0)
e.Response.StatusCode = 404
e.Response.StatusDescription = "NOT FOUND"
Dim postData As Byte() = Encoding.Default.GetBytes("糟糕,文件未找到")
Dim reqStream As System.IO.Stream = e.Response.OutputStream
reqStream.Write(postData, 0, postData.Length)
reqStream.Close()
3、BeforeHttpRequest中e.cancel=true