Home >Backend Development >PHP Tutorial >Maybe you want to remove the X-Powered-By in Response Headers?

Maybe you want to remove the X-Powered-By in Response Headers?

藏色散人
藏色散人forward
2021-01-14 15:44:553690browse

The following column PHP Tutorial will introduce to you the method of removing X-Powered-By in Response Headers. I hope it will be helpful to friends in need!

Maybe you want to remove the X-Powered-By in Response Headers?

Method:

First open php.ini and search expose_php to Change the corresponding value to Off

and then restart php and that’s it!

....

A netizen asked: Why remove it?

A certain blogger answered: I don’t want others to know what language I write in!

Hahaha

The above is the detailed content of Maybe you want to remove the X-Powered-By in Response Headers?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete