如何去掉PbootCMS程序响应头中的X-Powered-By:PbootCMS标识?
编者按:为了安全起见,可以去掉PbootCMS程序响应头中的X-Powered-By:PbootCMS标识。
找到并打开网站根目录下的 /core/init.php 文件第19行:
header('X-Powered-By:PbootCMS');
一、将其注释掉
// header('X-Powered-By:PbootCMS');
二、或者将其改成其他非PbootCMS标识,如CMS予以混淆:
header('X-Powered-By:CMS');
三、保存关闭并更新缓存即可。
