ryan_111816
Dec 16, 2009Nimbostratus
Strip HTTP Server Header
I'm trying to find an iRule which will strip out the Server header from my server's HTTP responses. I've found the following rule under the samples section: http://devcentral.f5.com/wiki/default.aspx/iRules/ServerResourceCloaking.html
That rule will do what I want to do, but it requires that I specify a list of accepted headers, and then it will strip any headers not in that list. Since I have quite a few virtual servers with different applications behind each one, this would require that I come up with a different list and iRule for each. What I'd rather have is a simple rule that just looks for and strips the Server header. Then I can just apply that rule to all of my virtual servers.
Just for clarification, I'm wanting to strip the header that identifies the server type. Here's a few common examples:
Server: Microsoft-IIS/6.0
Server: Apache/2.2.3(Red Hat)
Thanks for any assistance.