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

How to hide php information in php header

藏色散人
Release: 2023-03-08 10:26:01
Original
2306 people have browsed it

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
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template