1. Home
  2. Computer Science MCQs
  3. PHP
  4. Which directive should we disable to obscure the fact that…

Added 23 Jan 2024

Which directive should we disable to obscure the fact that PHP is being used on our server?

  1. show_php
  2. expose_php Correct answer
  3. print_php
  4. info_php

Correct answer

B. expose_php

13 views

MCQSEXAM

Explanation

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.

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs