Forum Discussion
littlebunny
Nimbostratus
Jun 04, 2019Only keep XFF header for specific subnet ranges
Hello We have some external facing virtual servers that have requests coming in from both internal and external sources. What we'd like to do is keep XFF headers only for requests coming in fro...
SWJO
Cirrostratus
Jun 05, 2019Hi
when HTTP_REQUEST {
if { [HTTP::header exists X-Forwarded-For] } {
if { [class match [HTTP::header X-Forwarded-For] equals my_external_ip] } {
HTTP::header remove X-Forwarded-For
}
}
else {
return
}
}
I didn`t test this rule. but this form would be work.
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