Forum Discussion

JimW_156953's avatar
JimW_156953
Icon for Nimbostratus rankNimbostratus
May 06, 2016

Replacing Server string from HTTP_RESPONSE

Hi:

 

I am trying to create an irule to hide the Windows 2000 based IIS5 from being visible, while keeping the legacy system running. Therefore I am trying to replace the string from HTTP_RESPONSE i.e.

 

HTTP/1.1 200 OK Server:Microsoft-IIS/5.0

 

to

 

Server: Microsoft-IIS/8.0

 

I have been working on crafting a streaming profile but http_response doesn't have the option to replace the server string.

 

Thanks in advance,

 

1 Reply

  • Hello,

    You can use the following irule :

    When HTTP_RESPONSE {
     HTTP::header remove Server
    }
    

    Or you can just use

    HTTP::header replace Server "new value"