Re: How to remove Apache version info from headers?

This is a discussion on Re: How to remove Apache version info from headers? within the Apache Web Server forums, part of the Web Server and Related Forums category; nickyboy wrote: > "Richard" <harding36@hotmail.com> wrote in message > news:3d438c91.0305021350.4a3fabd8@posting....


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-16-2003
Sean Carlos
 
Posts: n/a
Default Re: How to remove Apache version info from headers?

nickyboy wrote:
> "Richard" <harding36@hotmail.com> wrote in message
> news:3d438c91.0305021350.4a3fabd8@posting.google.c om...
>
>>I've been experimenting with the netcat utility lately and found that
>>I could access my local Apache server with a command like this:
>>
>>nc -v localhost 80
>>
>>I then execute a command like this:
>>
>>HEAD / HTTP/1.0
>>
>>...and hit 2 carriage returns. I then receive this:
>>
>>HTTP/1.1 200 OK
>>Date: Fri, 06 December 2052 16:26:61 GMT
>>Server: Apache/1.2.15 (Win32)
>>X-Powered-By: PHP/3.2.0
>>Connection: close
>>Content-Type: text/html
>>
>>I don't want people to be able to access my server like this and be
>>able to tell what versions of Apache and PHP I am running.
>>
>>How can I remove these details from the banner header that gets sent
>>back when executing a HEAD, GET, or POST command as demonstrated
>>above?

>
>
> Almost every webserver includes those sorts of details in the reply - it's
> pretty standard stuff but most browsers don't display the results to
> users....
> You could try using the "Header" command and "Header unset Server" - I've
> used "Header unset Cache-Control" in the past to modify things like the
> no-cache headers...
>
> hth
> nickyboy
>
>

There is a direct method: "ServerTokens Product" in httpd.conf. You
need to verify that this is compatable with your version. Note that
your information may be "cached " at sites like www.netcraft.com.

  #2 (permalink)  
Old 07-16-2003
suomi
 
Posts: n/a
Default Re: How to remove Apache version info from headers?

Hi every
this is pretty much the HTTP protocol, i.e. the transport protocol for
HTML. In general you cannot supress it entirely if you want to run a Web
Server. so your question should not be "how do I suppress the HTTP
protocol?" but "Do I really need to run a Web Server?"

suomi

Sean Carlos wrote:
> nickyboy wrote:
>
>> "Richard" <harding36@hotmail.com> wrote in message
>> news:3d438c91.0305021350.4a3fabd8@posting.google.c om...
>>
>>> I've been experimenting with the netcat utility lately and found that
>>> I could access my local Apache server with a command like this:
>>>
>>> nc -v localhost 80
>>>
>>> I then execute a command like this:
>>>
>>> HEAD / HTTP/1.0
>>>
>>> ...and hit 2 carriage returns. I then receive this:
>>>
>>> HTTP/1.1 200 OK
>>> Date: Fri, 06 December 2052 16:26:61 GMT
>>> Server: Apache/1.2.15 (Win32)
>>> X-Powered-By: PHP/3.2.0
>>> Connection: close
>>> Content-Type: text/html
>>>
>>> I don't want people to be able to access my server like this and be
>>> able to tell what versions of Apache and PHP I am running.
>>>
>>> How can I remove these details from the banner header that gets sent
>>> back when executing a HEAD, GET, or POST command as demonstrated
>>> above?

>>
>>
>>
>> Almost every webserver includes those sorts of details in the reply -
>> it's
>> pretty standard stuff but most browsers don't display the results to
>> users....
>> You could try using the "Header" command and "Header unset Server" - I've
>> used "Header unset Cache-Control" in the past to modify things like the
>> no-cache headers...
>>
>> hth
>> nickyboy
>>
>>

> There is a direct method: "ServerTokens Product" in httpd.conf. You
> need to verify that this is compatable with your version. Note that
> your information may be "cached " at sites like www.netcraft.com.
>


 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:41 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0