首页 > 代码库 > 清除 thinkphp跟php的 X-Powered-By

清除 thinkphp跟php的 X-Powered-By

thinkphp 清除 X-Powered-By: ThinkPHP


找到文件,
ThinkPHP/Lib/Think/Core/View.class.php。
搜索到一下代码屏蔽即可。
header(‘X-Powered-By:ThinkPHP‘);




PHP清除X-Powered-By: PHP/5.2.4


设置php.ini ,expose_php = Off。