You can use this little Python function to see what type of web server a site is running. All it does is send an HTTP request to the host and reads the 'server' header in the response.
import httplib def get_server_type(host): conn = httplib.HTTPConnection(host) conn.request('GET', '/') resp = conn.getresponse() return resp.getheader('server') print get_server_type('www.pylot.org') print get_server_type('www.techcrunch.com')
Output:
lighttpd/1.4.19Apache/2.0.52
Note: This doesn't work for all sites
Remember Me
Copyright © 2006-2008 Corey Goldberg
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.