Which directive should we disable to obscure the fact that PHP is being used on our server?
Correct answer
B. expose_php
13 views
B. expose_php
13 views
Setting expose_php = Off in php.ini stops PHP from announcing itself, mainly by removing the X-Powered-By: PHP/x.x HTTP response header.
It is a small security-through-obscurity measure: it does not fix vulnerabilities, but it gives automated scanners less information. The other directive names in the options do not exist.
Want more practice? Try the full set of Computer Science MCQs on MCQsExam.com.
Not sure why the answer is B? Ask here and get an explanation.