This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12577|Reply: 2

Close the php X-Powered-By message

[Copy link]
Posted on 6/17/2015 10:35:14 AM | | |
You can see the X-Powered-By word when requesting headers, which can be removed for safety. It depends on your needs


HTTP/1.1 200 OK
Date: Tue, 26 Oct 2010 02:53:56 GMT
Server: Apache
X-Powered-By: PHP/5.2.1
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=UTF-8

Remove X-Powered-By: PHP/5.2.1
then modify the php.ini file setting expose_php = Off

Description  
Decides whether PHP may expose the fact that it is installed on the server
(e.g. by adding its signature to the Web server header).  It is no security
threat in any way, but it makes it possible to determine whether you use PHP
on your server or not.

Decide whether PHP is exposed on the server,
(e.g., add this information to the web server header response). It's not safe.
But you can be sure that your server is running PHP at the time.
This means that if you open it, you can tell others that the server can run PHP, but it is not necessarily safe and can be turned off

Turn off the output X-Powered-By information





Previous:Completely hide the security and methods of Nginx version number
Next:Unable to access member "System.Web.Caching.Cache.NoAbsoluteExpiration" using instance references; ...
 Landlord| Posted on 6/18/2015 6:05:50 PM |
Posted on 9/24/2019 1:29:06 PM |
Thank you landlord.
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com