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 ...
hoolio
Cirrostratus
Jul 16, 2007As 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"'.
Or, if you know all of the headers you want to keep you can use 'HTTP::header sanitize header_1 header_2'.
The first command will remove the headers listed. The second command will remove all but the headers listed.
Lastly, if you want to leave the headers in, but replace them, you can use 'HTTP::header replace []'.
You can check the HTTP::header page on the wiki for more detail and some examples:
Click here
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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