Forum Discussion

Simon_Ecoffey_8's avatar
Simon_Ecoffey_8
Icon for Nimbostratus rankNimbostratus
Mar 12, 2007

Hiding reals servers IP address in http response

Hello,

 

Is there a way to hide the reals server ip address and port in the http response from bigIP LTM to clients.

 

Here is the cache output of my internet browser:

 

 

Client:HTTP-memory-only

 

request-method: GET

 

response-head:HTTP/1.1 200 OK

 

Date: Mon, 12 Mar 2007 11:04:35 GMT

 

Server: Apache

 

Accept-Ranges: bytes

 

Content-Length: 9643

 

Last-Modified: Tue, 06 Mar 2007 15:36:15 GMT

 

X-Powered-By: Servlet/2.4 JSP/2.0

 

X-Cache: MISS from 172.29.121.5

 

Content-Type: text/plain

 

Via: 1.1 172.29.121.5:8000

 

 

I would like to hide the x-cache and Via field.

 

 

Thanks

2 Replies

  • A while back, Deb posted a nice method for removing all instances of a header (it will remove multiple instances of the same header):

    
    when HTTP_RESPONSE {
        strip all instances of the existing headers
       foreach header {X-Cache Via} {
          while { [HTTP::header exists $header] } {
             HTTP::header remove $header
          }
       }
    }

    You could also remove the Date, Server and X-Powered-By headers to reduce the amount of superfluous info about the web application given back to the client.

    Aaron