During external reconnaissance, you issue a simple HEAD request and the response header discloses "Server: Apache/2.4.54 (Ubuntu) PHP/8.1.2". To reduce this banner information leakage while leaving the site's functionality unchanged, which single Apache httpd.conf directive should you modify?
Comment out the autoindex_module load line
Disable HTTP persistent connections with KeepAlive Off
Apache includes the ServerTokens directive to control how much detail is revealed in the Server response header. Setting it to "Prod" (ServerTokens Prod) trims the banner to just "Apache", hiding version numbers, build details, and loaded modules. Disabling KeepAlive or autoindex does not affect banner content, and enabling HTTP/2 only adds protocol support without altering header disclosure. Therefore, editing ServerTokens to the Prod level is the most direct way to minimize information exposure without impacting normal operation.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the ServerTokens directive in Apache?
Open an interactive chat with Bash
Why is it important to reduce banner information leakage in Apache?
Open an interactive chat with Bash
How does the KeepAlive directive differ from ServerTokens in functionality?
Open an interactive chat with Bash
What is the ServerTokens directive in Apache?
Open an interactive chat with Bash
Why is reducing banner information leakage important?
Open an interactive chat with Bash
How does changing ServerTokens to Prod differ from disabling KeepAlive?
Open an interactive chat with Bash
Certified Ethical Hacker (CEH)
Web Application Hacking
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .