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.aspxBut, 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?