免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3142 | 回复: 2
打印 上一主题 下一主题

[Web] 如何探测某个站点使用的Web服务器? [复制链接]

论坛徽章:
1
天蝎座
日期:2013-10-23 21:11:03
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-19 12:44 |只看该作者 |倒序浏览
如题
有没有什么简单的方法?

论坛徽章:
0
2 [报告]
发表于 2009-11-19 13:50 |只看该作者
wget -S --spider 网站
比如
# wget -S --spider www.sina.com
--07:30:14--  http://www.sina.com/
Resolving www.sina.com... 202.108.33.32
Connecting to www.sina.com|202.108.33.32|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.0 301 Moved Permanently
  Date: Thu, 19 Nov 2009 05:10:08 GMT
  Server: Apache/2.0.63 (Unix)
  Location: http://www.sina.com.cn/
  Cache-Control: max-age=3600
  Expires: Thu, 19 Nov 2009 06:10:08 GMT
  Vary: Accept-Encoding
  Content-Length: 231
  Content-Type: text/html; charset=iso-8859-1
  Age: 2341
  X-Cache: HIT from xd33-96.HP08040035.sina.com.cn
  Connection: close
Location: http://www.sina.com.cn/ [following]
--07:30:14--  http://www.sina.com.cn/
Resolving www.sina.com.cn... 202.108.33.32
Connecting to www.sina.com.cn|202.108.33.32|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.0 200 OK
  Date: Thu, 19 Nov 2009 05:45:02 GMT
  Server: Apache/2.0.63 (Unix)
  Last-Modified: Thu, 19 Nov 2009 05:44:38 GMT
  Accept-Ranges: bytes
  X-Powered-By: mod_xlayout_jh/0.0.1vhs.markIII.remix
  Cache-Control: max-age=60
  Expires: Thu, 19 Nov 2009 05:46:02 GMT
  Vary: Accept-Encoding
  X-UA-Compatible: IE=EmulateIE7
  Content-Type: text/html
  Age: 1
  Content-Length: 407225
  X-Cache: HIT from xd33-98.HP08040037.sina.com.cn
  Connection: close
Length: 407225 (398K) [text/html]
200 OK

可以看到新浪用的apache

论坛徽章:
0
3 [报告]
发表于 2009-11-19 13:54 |只看该作者

回复 #1 openspace 的帖子

[root@localhost ~]# curl -I www.sina.com
HTTP/1.0 301 Moved Permanently
Date: Thu, 19 Nov 2009 05:14:36 GMT
Server: Apache/2.0.63 (Unix)
Location: http://www.sina.com.cn/
Cache-Control: max-age=3600
Expires: Thu, 19 Nov 2009 06:14:36 GMT
Vary: Accept-Encoding
Content-Length: 231
Content-Type: text/html; charset=iso-8859-1
Age: 2396
X-Cache: HIT from xd33-89.HP08040028.sina.com.cn
Connection: close

[root@localhost ~]# curl -I www.sohu.com
HTTP/1.0 200 OK
Date: Thu, 19 Nov 2009 05:54:19 GMT
Server: Apache/1.3.37 (Unix) mod_gzip/1.3.26.1a
Vary: Accept-Encoding,X-Up-Calling-Line-id,X-Source-ID,X-Up-Bearer-Type
Cache-Control: max-age=70
Expires: Thu, 19 Nov 2009 05:55:29 GMT
Last-Modified: Thu, 19 Nov 2009 05:52:28 GMT
Content-Type: text/html
Age: 23
Content-Length: 243220
X-Cache: HIT from 33500586.45493735.42382083.sohu.com
Via: 1.1 33500586.45493735.42382083.sohu.com:80 (squid)
Connection: close
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP