对于工作中经常使用tomcat的童鞋来说,已经很习惯地看到tomcat看到下图:

  修改tomcat服务器banner的方法

  但是在实际场景中,这个Banner给入侵者提供了一定的指示作用。为了安全起见,要求更改这个信息,以起到一定的迷惑作用。那么我们就来修改一下试试,非常简单,只要在Connector中添加server属性就可以了,具体如下:

  打开tomcat的conf/server.xml,在server.xml找到

<Connector port="8080" protocol="HTTP/1.1"  connectionTimeout="20000"  redirectPort="8443"   URIEncoding="UTF-8" useBodyEncodingForURI="true" />

  修改后如下:

<Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"   URIEncoding="UTF-8" useBodyEncodingForURI="true" server="Microsoft-IIS/8.5"/>

这样我们将看到如下效果:A华丽地变身为I

  修改tomcat服务器banner的方法

 

相关文章:

  • 2021-04-28
  • 2022-12-23
  • 2021-11-30
  • 2021-09-07
  • 2021-12-24
  • 2022-02-23
  • 2021-07-02
猜你喜欢
  • 2022-12-23
  • 2022-01-03
  • 2021-10-08
  • 2021-11-18
  • 2022-12-23
  • 2021-12-15
相关资源
相似解决方案