利用curl查看网页头部信息
时间:2024-04-14 05:15:12 点击:79

  命令行如下:

  curl -I http://www.google.cn

  HTTP/1.1 200 OK

  Date: Fri, 04 Dec 2009 05:00:48 GMT

  Expires: -1

  Cache-Control: private, max-age=0

  Content-Type: text/html; charset=GB2312

  Set-Cookie: PREF=ID=b967a5569e7612fe:NW=1:TM=1259902848:LM=1259902848:S=RzTnMbkx10_w1Fo3; expires=Sun, 04-Dec-2011 05:00:48 GMT; path=/; domain=.google.cn

  Set-Cookie: NID=29=jSJmgVmzh8Tj9yXNQI_obR5bbG8wIOk2J_8A8fzeSTYuUalXTkC7vv8rZNAgcy2YAvZ0TaGnfrj3HlJMSP3i9qolrNNjSiwt2ZNQ-5vl9yOYGswZYq70c8MtBxr2Lw3c; expires=Sat, 05-Jun-2010 05:00:48 GMT; path=/; domain=.google.cn; HttpOnly

  Server: gws

  X-XSS-Protection: 0

  Content-Length: 0

  发现在其服务器名被修改为gws

  curl -I http://www.baidu.com

  HTTP/1.1 200 OK

  Date: Fri, 04 Dec 2009 04:55:44 GMT

  Server: BWS/1.0

  Content-Length: 3520

  Content-Type: text/html;charset=gb2312

  Cache-Control: private

  Expires: Fri, 04 Dec 2009 04:55:44 GMT

  Set-Cookie: BAIDUID=C7BAC24E0E27D415B0EAD646371C4D5D:FG=1; expires=Fri, 04-Dec-39 04:55:44 GMT; path=/; domain=.baidu.com

  P3P: CP=“ OTI DSP COR IVA OUR IND COM “

  发现在其服务器名被修改为BWS

  说明这两个网站都隐藏了其真实服务器类型

  一般这个命令或者通过工具都可以查出网站对应服务器类型

  如下:

  curl -I http://www.itmop.com/

  HTTP/1.1 200 OK

  Date: Fri, 04 Dec 2009 04:54:11 GMT

  Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 mod_auth_passthrough/2.1 frontpage/5.0.2.2635

  Vary: Accept-Language,Cookie,Accept-Encoding

  Content-Language: zh-cn

  Content-Type: text/html; charset=utf-8

  看得出来是用的Apache

  经过网上查资源,了解百度和谷歌都是使用thttpd服务器

  thttpd is a simple, small, portable, fast, and secure HTTP server.

最新游戏更多

最新软件更多

  • 玩家推荐
  • 游戏攻略

金钼软件下载站 Copyright(C) 2008- 601958.cn All Rights Reserved!

闽ICP备2023004188号| 免责声明