Can I detect what webserver a website is using?

48

15

Is there any program or command that I can use to detect what webserver a website is using? With webserver I mean in software i.e. IIS 6, Apache or nginx.

Jonas

Posted 2010-03-16T22:38:47.270

Reputation: 21 007

Question was closed 2015-11-09T20:16:40.443

I like: https://w3bin.com/ but it's not always going to be accurate due to CDNs such as CloudFlare, etc

– CTS_AE – 2017-06-19T09:46:01.873

Since the tools wget and curl will not become outdated (and probably many following HTTP versions will report the Server: header), this could be reopened.

– serv-inc – 2018-10-04T11:12:02.880

take a look at this: http://stackoverflow.com/questions/1097472/how-to-detect-web-server-type

– chook – 2010-03-16T22:48:15.610

Answers

49

You can use Netcraft What's That Site Running for a one off query.

You can use

wget --save-headers superuser.com

Which will dump the server headers into a new file index.html which you can then view in a text editor.

Eg, for this site:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Expires: Tue, 16 Mar 2010 22:54:59 GMT
Server: Microsoft-IIS/7.5
Date: Tue, 16 Mar 2010 22:54:58 GMT
Connection: keep-alive
Content-Length: 119466

Richard Holloway

Posted 2010-03-16T22:38:47.270

Reputation: 1 129

22

raw:

curl -I duckduckgo.com

filtered:

curl -s -I duckduckgo.com|grep Server

or

curl -s -I duckduckgo.com|sed -n '/^Server:/p'

or übercool

curl -s -I duckduckgo.com|awk '$1~/Server:/ {print $2}'

or for poser

curl -s -I duckduckgo.com|sed -n 's/^S[erv]*: //p'

only for unixoide OS!!!

user243885

Posted 2010-03-16T22:38:47.270

Reputation: 221

1+ for "übercool" and "poser". Indeed SED+AWK Users are übercool posers :D – Gewure – 2017-07-19T07:48:01.097

3

For a public website, you can use Netcraft - http://netcraft.com/. It allows you to plug in a website's address, and it will analyze the headers and tell you the webserver in use.

Mox

Posted 2010-03-16T22:38:47.270

Reputation: 589