wampserver-apache在403等页面中隐藏版本和系统信息

Forbidden

You don't have permission to access / on this server.

Apache/2.4.9 (Win32) PHP/5.5.12 Server at xxx.xxx.xxx.xxx Port 80


httpd.conf文件中

ServerSignature On改成off后

显示


Forbidden

You don't have permission to access / on this server.



还可以根据ServerTokens来显示具体哪些信息(要设置ServerSignature为On)

语法:ServerTokens Major | Minor | Min[imal] | Prod[uctOnly] | OS | Full

默认:ServerTokens Full


Full:

Forbidden

You don't have permission to access / on this server.

Apache/2.4.9 (Win32) PHP/5.5.12 Server at xxx.xxx.xxx.xxx Port 80



OS:(没有php版本号)

Forbidden

You don't have permission to access / on this server.

Apache/2.4.9 (Win32) Server at xxx.xxx.xxx.xxxPort 80




Prod:

Forbidden

You don't have permission to access / on this server.

Apache Server at xxx.xx.xx.xxxPort 80


其他的参数不一一测试了



你可能感兴趣的:(wampserver-apache在403等页面中隐藏版本和系统信息)