Notice: Undefined index: HTTP_USER_AGENT in /var/www/html/cuijunwei/wp-content/plugins/crayon-syntax-highlighter/util/crayon_util.class.php on line 793
Notice: Undefined index: HTTP_USER_AGENT in /var/www/html/cuijunwei/wp-content/plugins/crayon-syntax-highlighter/util/crayon_util.class.php on line 793
最近用了一个chrome插件叫做Wappalyzer的,可以看到网站的cms,统计工具,js框架等等。
看到自己的网站时,发现连OS,apache版本和php版本都出来了,这也太全了。
隐藏的办法如下:
在httpd.conf当中
1 2 |
ServerSignature Off ServerTokens Prod |
在php.ini中
1 |
expose_php Off |
这样子就不会透露太多不必要的信息了