开发者

Alternative to header_remove

开发者 https://www.devze.com 2022-12-27 02:25 出处:网络
I know that header_remove doesn\'t work in php versions < 5.3 and I use 5.2.1. I am looking for an alternative to header_remove to remove the X-Powered-By header.

I know that header_remove doesn't work in php versions < 5.3 and I use 5.2.1. I am looking for an alternative to header_remove to remove the X-Powered-By header.

I tried using header("X-Powered-By: "); but it still generates a blank header. I tried using Header unset X-Powered-By in .htaccess, but for some reason it's not work开发者_如何学Cing. I am stuck here.


AFAIK, there is no replacement for this function, but you can either alter the result to something bogus as described above, or configure php.ini to block this header with the following statement:

expose_php = Off
0

精彩评论

暂无评论...
验证码 换一张
取 消