Vidyalelo
PHP · Q8

Website Security

Programming · PHP · question 8

Q8

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

A.
show_php
B.
expose_php
Answer
C.
print_php
D.
info_php

Answer: Option B

Solution

Answer: Option B
Solution:
Using the expose_php directive we can prevent PHP version details from being appended on our web server signature. When expose_php is disabled, the server signature will look like: Apache/2.2.11 (Ubuntu) Server.