Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding calls to axd
Message
From
23/02/2009 19:58:30
 
 
To
All
General information
Forum:
ASP.NET
Category:
Security
Title:
Avoiding calls to axd
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01383637
Message ID:
01383637
Views:
103
Some hits are trying to workaround some of the extensions to a Web site. So, I receive hits with the axd extension such as:
WebResource.axd?d=SZEFqug8p8L5B-9RjR3GVw2&t=63294346530265625
To intercept that and to avoid this log in the Event Viewer, I have added this in my Global.asax:
    Sub Application_PreRequestHandlerExecute(ByVal sender As Object, ByVal e As EventArgs)
        Dim loContext As Object = Context.Handler
        Dim loType As Object = loContext.GetType()
        Dim lcType As String = loType.ToString

        ' .axd
        If lcType = "System.Web.Handlers.AssemblyResourceLoader" Then
            Response.Redirect("Default.aspx")
        End If

    End Sub
My Global.asax includes more lines. I just kept the relevant ones here for this issue. So far, this works. So, basically, if a robot tries to send several URL like this, they will be forwarded to the main page. Having this like that, can this be the cause of potential other problems that could be related to that? Or, basically, what does the axd extension exactly?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform