0
我有一个使用vb.net 2.0开发的网站。它有一个类似http://dgmseoc.com的网址。我想避免使用其他URL的任何恶意请求。我试图使用下面的代码实现,并希望在页面加载时将这些请求踢出网站。我怎样才能做到这一点?任何帮助,请 - 谢谢你提前:检查URL并踢出网站恶意请求
If (urlParams.Contains("http") And
Not urlParams.Contains(Request.ServerVariables("HTTP_HOST").ToString)) Then
‘Would like to kick out of the site here.
End If