Pages

Tuesday, January 13, 2015

How to Identify the type of Remote Webserver used by the website

Problem: 

Being an administrator we have to find the type of web server (IIS or Apache or IHS) used by a website without logging on to the server.

Resolution : 


  • We will check the server type used for wikipedia.org as an example 
  • Go to the command prompt and type telnet wikipedia.org 80 and press enter:
  • Once you get the black screen (which confirms that you have connected to website on port 80)
  • Type Following command on that black screen (Characters will not be visible while typing)  
  • HEAD / HTTP/1.0 and press enter twice, 
  • You will see the results similar to following : 

HTTP/1.1 200 OK
Server: Apache
X-Powered-By: HHVM/3.3.0-static
Last-Modified: Sun, 20 Jul 2014 01:37:07 GMT
ETag: "380-4fe96073f96c0"
Content-Type: text/html
X-Varnish: 2794515395 2763687083, 2901371103 2901280737
Via: 1.1 varnish, 1.1 varnish
Content-Length: 896
Accept-Ranges: bytes
Date: Tue, 13 Jan 2015 11:52:04 GMT
Age: 27117
X-Cache: cp1066 hit (1695), cp1066 frontend hit (27)
X-Analytics: php=hhvm
Connection: close
Set-Cookie: GeoIP=US:Morristown:40.7968:-74.4815:v4; Path=/; Domain=.154.224

You can find the server type as Apache in the results.

For Linux clients , you can use CURL utility as well.

Happy Blogging ;-)