hide server info
<?php /*
wamp64\bin\apache\apache2.4.18\conf
httpd.conf
ServerSignature On
ServerTokens Full Server:Apache/2.4.18 (Win64) PHP/5.6.19
X-Powered-By:PHP/5.6.19
*/
<?php
header('X-Powered-By: ASP.NET'); /*
wamp64\bin\apache\apache2.4.18\conf
httpd.conf
ServerSignature On
ServerTokens Full Server:Apache/2.4.18 (Win64) PHP/5.6.19
X-Powered-By:ASP.NET
*/
<?php
header('Server: ASP.NET');
header('X-Powered-By: ASP.NET'); /*
wamp64\bin\apache\apache2.4.18\conf
httpd.conf
ServerSignature On
ServerTokens Full Server:Apache/2.4.18 (Win64) PHP/5.6.19
X-Powered-By:ASP.NET
*/
<?php /*
wamp64\bin\apache\apache2.4.18\conf
httpd.conf
ServerSignature Off
ServerTokens Full Server:Apache/2.4.18 (Win64) PHP/5.6.19
X-Powered-By:ASP.NET
*/
<?php /*
wamp64\bin\apache\apache2.4.18\conf
httpd.conf
ServerSignature Off
ServerTokens ProductOnly Server:Apache
X-Powered-By:PHP/5.6.19
*/
<?php
header('X-Powered-By: ASP.NET');
/*
wamp64\bin\apache\apache2.4.18\conf
httpd.conf
ServerSignature Off
ServerTokens ProductOnly Server:Apache
X-Powered-By:ASP.NET
*/
<?php
header('X-Powered-By: yuanjiangw');
/*
wamp64\bin\apache\apache2.4.18\conf
httpd.conf
ServerSignature Off
ServerTokens ProductOnly Server:Apache
X-Powered-By:yuanjiangw
*/
https://httpd.apache.org/docs/2.4/mod/core.html#serversignature

ServerSignature Directive
| Description: | Configures the footer on server-generated documents |
|---|---|
| Syntax: | ServerSignature On|Off|EMail |
| Default: | ServerSignature Off |
| Context: | server config, virtual host, directory, .htaccess |
| Override: | All |
| Status: | Core |
| Module: | core |
The ServerSignature directive allows the configuration of a trailing footer line under server-generated documents (error messages,mod_proxy ftp directory listings, mod_info output, ...). The reason why you would want to enable such a footer line is that in a chain of proxies, the user often has no possibility to tell which of the chained servers actually produced a returned error message.
The Off setting, which is the default, suppresses the footer line (and is therefore compatible with the behavior of Apache-1.2 and below). The Onsetting simply adds a line with the server version number and ServerName of the serving virtual host, and the EMail setting additionally creates a "mailto:" reference to the ServerAdmin of the referenced document.
After version 2.0.44, the details of the server version number presented are controlled by the ServerTokens directive.
See also

ServerTokens Directive
| Description: | Configures the Server HTTP response header |
|---|---|
| Syntax: | ServerTokens Major|Minor|Min[imal]|Prod[uctOnly]|OS|Full |
| Default: | ServerTokens Full |
| Context: | server config |
| Status: | Core |
| Module: | core |
This directive controls whether Server response header field which is sent back to clients includes a description of the generic OS-type of the server as well as information about compiled-in modules.
ServerTokens Full(or not specified)- Server sends (e.g.):
Server: Apache/2.4.2 (Unix) PHP/4.2.2 MyMod/1.2 ServerTokens Prod[uctOnly]- Server sends (e.g.):
Server: Apache ServerTokens Major- Server sends (e.g.):
Server: Apache/2 ServerTokens Minor- Server sends (e.g.):
Server: Apache/2.4 ServerTokens Min[imal]- Server sends (e.g.):
Server: Apache/2.4.2 ServerTokens OS- Server sends (e.g.):
Server: Apache/2.4.2 (Unix)
This setting applies to the entire server, and cannot be enabled or disabled on a virtualhost-by-virtualhost basis.
After version 2.0.44, this directive also controls the information presented by the ServerSignature directive.
ServerTokens to less than minimal is not recommended because it makes it more difficult to debug interoperational problems. Also note that disabling the Server: header does nothing at all to make your server more secure. The idea of "security through obscurity" is a myth and leads to a false sense of safety.See also
<?php
header('X-Powered-By: yuanjiangw');
/*
wamp64\bin\apache\apache2.4.18\conf
httpd.conf
ServerSignature On
ServerTokens ProductOnly Server:Apache
X-Powered-By:yuanjiangw
*/
<?php
header('X-Powered-By: yuanjiangw_mail');
/*
wamp64\bin\apache\apache2.4.18\conf
httpd.conf
ServerSignature EMail
ServerTokens ProductOnly Server:Apache
X-Powered-By:yuanjiangw_mail
*/
发问:
0-ServerSignature作用?
hide server info的更多相关文章
- Nginx and PHP-FPM Configuration and Optimizing Tips and Tricks
原文链接:http://www.if-not-true-then-false.com/2011/nginx-and-php-fpm-configuration-and-optimizing-tips- ...
- 在 Qualys SSL Labs SSL 测试中获得 A+ 评级的秘技 2021 版
本系列文章将阐述主流应用交付控制器和主流 Web 服务器如何运行 HTTP/2 和 TLSv1.3 协议,以及如何在 SSL Test 中获得 A+ 评级. 请访问原文链接:https://sysin ...
- sql server 中隐藏掉无关数据库
先贴上我实际测试的效果 方法一: Problem I have a SQL Server instance that has hundreds of databases. Navigating th ...
- web server && web framework角色区分
问题 web framework是否包括webserver? 是否可以包括? webserver 和 framework的关系是? https://www.quora.com/What-is-the- ...
- 低调的华丽,Windows Server 2003 ... 写给厌倦了XP,但又纠结于vista/win7花哨的童鞋(转)
发布于2001年10月25日的windows XP 距今已近8年 时间, 微软从没有一个操作系统能像XP那样 坚挺这么久,婚姻既有7年之痒,何况用了8年XP的广大 同学,但07年发布的vista似乎 ...
- mount.nfs: access denied by server while mounting localhost:/home/xuwq/minilinux/system
在执行命令如下: mount -t nfs localhost:/home/xuwq/minilinux/system /mnt 出现的错误: mount.nfs: access denied by ...
- ArcGIS Server 10.2 实战(二)动态修改要素数据的地理处理服务
上一篇<ArcGIS Server 10.2 实战(一)Asp.net MVC与JSON数据妙用实现动态生成要素图层>介绍了如何用JSON转要素的地理处理服务,实现了动态创建点要素并加载到 ...
- How to: Hide the Ribbon in SharePoint 2010
转:http://blogs.msdn.com/b/sharepointdev/archive/2012/04/30/how-to-hide-the-ribbon-in-sharepoint-2010 ...
- ssi(Server Side Includes)介绍
Server Side Includes (SSI) is a simple interpreted server-side scripting language used almost exclus ...
随机推荐
- Error loading page Domain: WebKitErrorDomain Error Code: 101
使用 WebView 组件,loading的过程中出现这个错误. 解决方案: webVIew 里面加 renderError={ (e) => { if (e === 'WebKitErrorD ...
- maven的配置及一些常用命令
一般来说,github上大多的java项目都是使用maven,ant等进行构建的.由于之前没有使用过maven,因此这几天对maven进行了简单的学习.古话说:“温故而知新”,一些命令长时间不使用都会 ...
- ajax的工作原理2
Ajax是异步javascript和xml,可以在不重新加载整个网页的情况下,与服务器异步数据交换,对网页中某个部分进行局部刷新. Ajax是如何实现局部刷新的: 在脚本设置window对象的loca ...
- VIM空格和TAB转换
在.vimrc中添加以下代码后,重启vim即可实现按TAB产生4个空格:set ts=4 (注:ts是tabstop的缩写,设TAB宽4个空格)set expandtab 对于已保存的文件,可以使用下 ...
- 模仿CyclicBarrier,自定义自己屏障类
简介 在这里模仿CyclicBarrier,自定义一个自己多线程屏障类,里面有个计时器count,count为0时,才唤醒线程,否则就await挂起,(没错就是用的object类的挂起和唤醒全部线程方 ...
- 模仿CountDownLatch类自定义倒时计时器
简介 这里模仿CountDownLatch类自定义到时计时器,利用AQS模板中的尝试获得共享和释放共享 1.MyCountDownLatch package com.jacky; import com ...
- 网络协议TCP/IP、IPX/SPX、NETBEUI简介
网络中不同的工作站,服务器之间能传输数据,源于协议的存在.随着网络的发展,不同的开发商开发了不同的通信方式.为了使通信成功可靠,网络中的所有主机都必须使用同一语言,不能带有方言.因而必须开发严格的标准 ...
- Android wpa_supplicant 四次握手 流程分析
记录wpa_supplicant四次握手的过程. 相关log:https://www.cnblogs.com/helloworldtoyou/p/9633603.html 接收到第一次握手,会设置一个 ...
- Cisco NTP配置
Windows 或 Linux 系统配置成NTP服务器,思科交换机配置成NTP客户端 ##创建VLAN 10 SW01>enable SW01#vlan database SW01(vlan)# ...
- xampp+YII搭建网站
一.安装xampp xampp专为php开发设计,需要的apache,mysql,php已经自带了.特别提醒,请下载PHP版本高于5.4支持Yii2.0的xampp 二.配置环境变量 在系统的环境变量 ...