Microsoft suggests making a bogus get_asp_ver.aspx file, but many use this code in their global.asax.vb file which makes more sense to me than having a file in your site that does nothing:
Sub Application_BeginRequest(ByVal sender As Object, _
ByVal e As EventArgs)
Dim url As String = CStr(Request.ServerVariables("URL"))
If url.ToLower().IndexOf("get_aspx_ver.aspx") >= 0 Then
Response.End()
End If
End Sub
No comments:
Post a Comment