Forum Discussion
tminfw2
Nimbostratus
Aug 25, 2016iRule: Referer header not removed in HTTP request
In order to test a possible solution for a problem, I want to remove the Referer header for certain incoming requests. This is the irule I created and added to the impacted virtual server:
when HTTP_REQUEST {
if { ( [HTTP::uri] contains "abc") && ( [HTTP::header "Referer"] contains "def")} {
log local0. [HTTP::header "Referer"]
HTTP::header remove "Referer"
log local0. [HTTP::header "Referer"]
}
}
However, when I take a tcpdump on the SNAT address of the virtual server, I can still see the Referer header with content being sent to our webservers. The logs above do show the Referer content being erased
Version 11.5.4
1 Reply
- Vijay_E
Cirrus
Take the tcp dump on the server. Make sure that the right case (lower/upper) is utilized.
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
