Forum Discussion
Technological_S
Nimbostratus
Feb 11, 2009remove 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
- semperfiguy_759
Nimbostratus
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 - Technological_S
Nimbostratus
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 - hoolio
Cirrostratus
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 - Technological_S
Nimbostratus
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
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