Re: [users@httpd] Removing the Server Response Header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joshua Slive wrote:
On 4/13/05, Larry Johnson <ljohnson@xxxxxxxxxxxx> wrote:

      I'm currently in the process of trying to remove/write over the
"Server" response header variable using mod_headers. My question is where
exactly in my configuration files do I need to place the "Header unset ..."
or "Header set ..." lines for them to overwrite or remove this variable.
I've tried in httpd.conf to no avail, though I can add new header variables
so I know that mod_headers is working properly. Anything you can provide
would be a great help.


You can't do that with mod_headers, and it's a silly idea anyway.

If you want to display less information, see the ServerTokens
directive.  If you want to lie in the server header or omit it
entirely, you'll need to hack the code.

Not really..
you can do some other tricks to.

Mod_security (and other mod i dont remember) allow "faking" the server-id.
However, if you are lazy, and want to do it fast, just vi (or another binary editor) the httpd binary, and replace the appareances of Apache/2 with your own string (has to be the same lenght)



Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux