Php. ini configuration --- hide the PHPSESSION and X-Powered-By: PHP/5.2.1 information in the response header of the PHP program. Although this is safe, I personally think this is useless, but sometimes there is still such a requirement in actual applications. as for our current project, we don't want to expose what development we use, so this php. ini configuration --- hide PHPSESSION and X-Powered-By: PHP/5.2.1 in the response header of a PHP program
Although I personally think this does not play a role in terms of security, sometimes there is still such a demand in practical applications. as for our current project, in fact, we don't want to expose what we use for development. for some people who are not very proficient in technology, this can be perfunctory. I said that I am a java developer and may not know it!
In the php. ini file, set:
Find
Expose_php = On
Change
Expose_php = Off
In this way,
X-Powered-By: PHP/5.2.1
Find
Session. name = PHPSESSID
Changed:
Session. name = SESSIONID
In this way, no PHPSESSID words will appear in the header information.