Home >Backend Development >PHP Problem >How to hide php information in php header

How to hide php information in php header

藏色散人
藏色散人Original
2021-02-28 09:11:022299browse

How to hide php information in php header: first find and open the php.ini configuration file; then change "expose_php=On" to "expose_php=Off".

How to hide php information in php header

The operating environment of this article: windows7 system, php7.0.12 version, DELL G3 computer

Hide the php information in the header

If the php version is not hidden by default, you can see the php version in the header. The format is as follows

X-Powered-By: PHP/7.0.12

In the php.ini configuration file, change expose_php = On to Off. .

[Recommended learning: "PHP Video Tutorial"]

The above is the detailed content of How to hide php information in php header. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn