Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

closed as off-topic by random Nov 9 '15 at 20:16

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – random
If this question can be reworded to fit the rules in the help center, please edit the question.

    
take a look at this: stackoverflow.com/questions/1097472/… – mali Mar 16 '10 at 22:48
up vote 28 down vote accepted

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
share|improve this answer

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!!!

share|improve this answer

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.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.