User Tools

Site Tools


list_webserver_information

This is an old revision of the document!


List webserver information

In case you want to determine webserver and OS information for a given site use curl or wget. Some sites will reveal a lot of information some is not so informative.

# curl -I http://<domain>
# wget --server-response --spider http://<domain>

https can be used as well

If curl or wget is not installed telnet can be used as well

# telnet <domain> 80 (or 443 is https is used)

Type

HEAD / HTTP/1.0

Hit enter twice

Hide webserver information

Change your servers php.ini expose php parameter to:

expose_php Off

Change/add following httpd.conf parameters:

ServerTokens Prod

This will only reveal Apache in return.

List IP's after number of hits

awk '{print $1}' accept.log | sort  | uniq -c | sort -n
list_webserver_information.1327084275.txt.gz · Last modified: 2012/01/20 18:31 by root