Fingerprint / Identify Remote Web Server

Q. How do I fingerprint or identify remove web server a from UNIX / Linux shell prompt?

A. You can use standard utilities such as
a) telnet command

b) curl command

telnet – Identify remote web server

Use telnet to connect to remove web server, enter
$ telnet www

Connected to
Escape character is '^]'.

Request header, enter the following command and hit [ENTER] key twice:

HTTP/1.0 200 OK
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Date: Mon, 28 Jan 2008 08:50:55 GMT
Server: lighttpd

Connection closed by foreign host.

curl – Identify remote web server

Type the command as follows:
$ curl -I
$ curl -I


HTTP/1.1 200 OK
Content-type: text/html
Content-Length: 0
Date: Mon, 28 Jan 2008 08:53:54 GMT
Server: lighttpd

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.