ServerTokens Prod, ServerSignature Off

web

I tend to forget the syntax every time, but one of the first things I do when I setup an Apache web server is add/edit these two directive in my httpd.conf:

ServerSignature Off
ServerTokens Prod

The first one, ServerSignature Off tells apache not to display the server version on error pages, or other pages it generates.

The second one ServerTokens Prod tells apache to only return Apache in the Server header, returned on every page request.

Why do this?

I do this for security reasons. Its not a good idea to broadcast the versions of software your running. While it doesn't make your server any more secure, it may make you less of a target.

What if I am running IIS?

For IIS you can use Microsoft's Free URLScan tool, that latest version of this tool now supports IIS 7.



Related Entries

16 people found this page useful, what do you think?

Trackbacks

Trackback Address: 419/D2A7903777E601A38B25BD466048A4C1

Comments

On 03/28/2011 at 7:53:52 PM EDT Michael Kane wrote:
1
For Windows servers, is installing UrlScan the only way to address this issue?

On 10/15/2011 at 8:56:27 AM EDT S wrote:
2
Sadly, these no longer work. I added both into the httpd.conf on Debian Squeeze and OpenVAS reported: Apache Web Server version 2.2.16 was detected on the host.

Have to think of something else :(

On 12/21/2011 at 4:41:29 AM EST Marcus wrote:
3
On debian and ubuntu this should be inserted in: /conf.d/security and Apache 2+ works fine thx!

Post a Comment




  



Spell Checker by Foundeo

Recent Entries



foundeo


did you hack my cf?