Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More on wrong host received
Message
De
08/04/2010 10:23:00
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
More on wrong host received
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01459327
Message ID:
01459327
Vues:
101
Recently, I started a thread about a hit, that sometimes, goes to my server, but the URL received parameter was wrong.

I made adjustment in my code to use the HTTP_HOST parameter instead. This still doesn't resolve the issue. Basically, all related parameter received are wrong. For example, this is a link that I received:

http://71.56.95.140:80/Default.aspx

But, that link was sent to my server. This IP is totally not related. This is not under my network.

The following are what was from the server variables:

HTTP_HOST = 24.98.109.144
REMOTE_ADDR = 24.98.109.144
REMOTE_HOST = 24.98.109.144
REMOTE_PORT = 38486
SERVER_NAME = 71.56.95.140
SERVER_PORT = 80

As you can see, the REMOTE_ADDR and REMOVE_HOST are ok. The HTTP_HOST is somewhat a reverse translation of the URL that was recognized. So, because there was something wrong in how IIS and .NET interpreted the parameters, I ended up with something wrong in here. The SERVER_NAME is taking from the URL, and because it was wrong as well, it has ended up like that.

So, the problem is why this hit is sent to my server or why is the URL not properly recognized?
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
Répondre
Fil
Voir

Click here to load this message in the networking platform