Certified Application Security Engineer – Java (CASE-Java) — Question 11

Which of the following configurations can help you avoid displaying server names in server response header?

Answer options

Correct answer: C

Explanation

Option C is correct because setting Server = " " effectively removes the server name from the response header. Options A, B, and D do not achieve this goal; A does not modify the server name, B incorrectly attempts to disable it but is not supported, and D sets the ServerName to 'null', which may still display a server name in the response.