Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding calls to axd
Message
De
23/02/2009 19:58:30
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Securité
Titre:
Avoiding calls to axd
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01383637
Message ID:
01383637
Vues:
102
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform