chromesniffer icon indicating copy to clipboard operation
chromesniffer copied to clipboard

wrong server-side language

Open gion opened this issue 11 years ago • 3 comments

I have a php site that's hosted on a IIS server. Chromesniffer detects both php and asp.net, even if I don't have/use asp.net on that site.

gion avatar Jan 10 '14 12:01 gion

This might be an issue of my server. I have 2 headers that state the language:

X-Powered-By:PHP/5.2.6
X-Powered-By:ASP.NET

It is known that IIS sometimes adds that header even if you don't need it, but I was wondering if you could add a priority flag system to this sniffing too. After all, I don't think that a page can be rendered at the same time with both php and asp.net.

gion avatar Jan 10 '14 12:01 gion

The ASP.NET header could be disregarded if for example the URL contains .php maybe?

cbaltatescu avatar Jan 10 '14 12:01 cbaltatescu

I found an example of this here: http://www.gradgems.com/login_emp.php

However, there seems to be a bigger problem that the extension doesn't seem to even finishing running despite having detected a things including IIS and the 2 X-Powered-By headers.

stevelacey avatar Jan 26 '14 13:01 stevelacey