隐藏 apache 和 php 信息

1081
|
2020-08-19 14:16:49

去掉 X-Powered-By 只需要修改php.ini 中 

expose_php = On
改成
expose_php = Off

隐藏 Apache 版本信息,修改/etc/httpd/conf/httpd.conf

ServerTokens Prod
ServerSignature Off