Forum Discussion
MPR
Nimbostratus
Sep 20, 2021Extracting http header- Client IP address
X-Forwarder-for has been setup to extract the client IP information from F5. Recently we integrated a cloud based WAF into our environment where they will be changing the client IP to their Proxy IP ...
xuwen
Cumulonimbus
Sep 21, 2021when HTTP_REQUEST {
if { [HTTP::header exists "Incap-Client-IP"] } {
set client_ip [HTTP::header "Incap-Client-IP"]
} elseif { [HTTP::header exists "X-Forwarded-For"] } {
set client_ip [getfield [HTTP::header "X-Forwarded-For"] "," 1]
}
if { [info exists client_ip] } {
HTTP::header insert "Client_Real_IP" $client_ip
}
}
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
