Forum Discussion

Technological_S's avatar
Technological_S
Icon for Nimbostratus rankNimbostratus
Feb 11, 2009

remove header in http_response

Hi;

 

 

 

We have a balanced pool that when the F5 connect to it we througt a 403 exception and we want that the response to the server was without headers so we would like to erase the headers in the client side when in the server side we throught a 403 exception.

 

how can I do it?

 

 

Thanks in advanced

 

 

Maria

 

4 Replies

  • Hello Maria,

     

    I am not sure which header you would like to remove. What is your goal? Is it to have the client NOT see the 403, but see something else?

     

     

     

    Like this:

     

    Request

     

    Client--->BIGIP--->Server

     

    Response

     

    Client <---BIGIP<---Server

     

    sorry page<-iRule<-403

     

     

     

    ---This iRule should get you started---

     

     

    when HTTP_RESPONSE {

     

    if { [HTTP::status] == 403 } {

     

    HTTP::redirect "http://www.website.com/sorry.html"

     

    }

     

    }

     

     

     

     

    Hope this helps
  •  

    Hi

     

    the thing we want to do is that when the Big-IP send a 403 to the client we delete the server BIG-IP header in that message.

     

     

    Like this:

     

    Request

     

    Client--->BIGIP

     

    Response

     

    Client <---BIGIP

     

     

     

     

  • To prevent the insertion of the "Server: BigIP" header in 9.4.2 and higher, you can use 'HTTP::respond 403 noserver content "some HTML" header1_name header1_value' as described in the HTTP::header wiki page (Click here).

     

     

    Aaron
  • My version is 9.2.3, we are planning to update it but we do not when.

     

    I try to do th ething ypu say to my and i don't see the server header delete.

     

     

    do you know what can be the problem?

     

     

    thanks in advanced