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 ...
随机推荐
- 《网络编程》IPv4 与 IPv6 相互操作
前言 因为互联网终端不断添加.IPv4 地址长度(32位)已不可以满足要求.所以出现了 IPv6地址(128位).可是现有应用程序大部分还是採用 IPv4 地址形式,所以必须解决 IPv4 与 IPv ...
- 【iCore4 双核心板_FPGA】例程七:状态机实验——状态机使用
实验现象:按键每按下一次,三色LED改变一次状态. 核心代码: //--------------------module_rst_n---------------------------// modu ...
- TCP连接
https://www.cnblogs.com/dj0325/p/8490293.html
- ODbgScript 2.01帮助文档
-------------------------------ODbgScript original pluginhttp://github.com/odbgscript--------------- ...
- Unity5 AssetBundle系列——基本流程
Unity5的AssetBundle修改比较大,所以第一条建议是:忘掉以前的用法,重新来!要知道,Unity5已经没办法加载2.x 3.x的bundle包了…体会一下Unity5 AssetBundl ...
- Java知多少(86)文本框和文本区的输入输出
在GUI中,常用文本框和文本区实现数据的输入和输出.如果采用文本区输入,通常另设一个数据输入完成按钮.当数据输入结束时,点击这个按钮.事件处理程序利用getText()方法从文本区中读取字符串信息.对 ...
- MYSQL + MHA +keepalive + VIP安装配置(三)--keepalived安装配置
一.概述 keepalived介绍:Keepalived的作用是检测web服务器的状态,如果有一台web服务器死机,或工作出现故障,Keepalived将检测到,并将有故障的web 服务器从系统中剔除 ...
- 记录一次在安装双系统的过程(先有debian, 后加windows 8.1)
突破的难题: 如何在一整个根目录的分区中切出来一半用于安装windows8.1呢? 当初安装debian系统时, 由于脑残,直接把整个500G的硬盘分给了根目录 / ,所以整个磁盘就TMD的一个主 ...
- Windows server 2008 R2 多用户远程桌面
1. 创建三个本地管理员测试用户 user01 user02 user03并设置密码 2. 开启远程桌面连接 3.新建规则放行远程桌面端口3389 (或者关闭防火墙) 4.安装远程桌面服务 5 ...
- Springboot学习笔记(六)-配置化注入
前言 前面写过一个Springboot学习笔记(一)-线程池的简化及使用,发现有个缺陷,打个比方,我这个线程池写在一个公用服务中,各项参数都定死了,现在有两个服务要调用它,一个服务的线程数通常很多,而 ...