11-Feb-2022 07:26
How would I go about replacing the X-Forwarded-For header with a value from another header such as "Real-Client-IP" for example. Something like the below is what i'm statrting with but this obviously isnt working.
when HTTP_REQUEST {
HTTP::header replace X-Forwarded-For HTTP::header value Real-Client-IP [HTTP::header value X-Forwarded-For]
}
Thanks in advance!
Solved! Go to Solution.
11-Feb-2022 13:46
Hello Tetimmons.
Try this:
when HTTP_REQUEST {
HTTP::header replace X-Forwarded-For [HTTP::header value Real-Client-IP]
HTTP::header remove Real-Client-IP
}
11-Feb-2022 13:46
Hello Tetimmons.
Try this:
when HTTP_REQUEST {
HTTP::header replace X-Forwarded-For [HTTP::header value Real-Client-IP]
HTTP::header remove Real-Client-IP
}
15-Feb-2022 09:08
Thanks all!