Forum Discussion
adamp_1519
Nimbostratus
Jul 15, 2007web server banner
i'd like to use an iRule to strip arbitrary web-server header values.
the primary reason is the web-server, eg: "Server: IIS 6.0", however stripping any defined tag/value based string would be optimal (for X- values etc).
eg:
Server: Apache
X-Powered-By: PHP/4.3.10-18
would be nice if i could remove, or replace the text.
thanks in advance
- Nicolas_BerthieHistoric F5 Accountyou can look at "sanitize" command which strips every http headers in server response except those you specify.
- hoolio
Cirrostratus
As nberthier suggested, you can use the HTTP::header functions to do this. If you know all the header names you want to remove from the response sent to the client, you can use 'HTTP::header remove "header name"'. - adamp_1519
Nimbostratus
champions - thats exactly what i'm after
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects