XFF Universal Persistence iRule
Updated Jun 06, 2023
Version 2.0Was this article helpful?
Hi,
I recommand you to change :
[lindex [ split [HTTP::header X-Forwarded-For] "," ] 0]
by
[getfield [lindex [HTTP::header values X-Forwarded-For] 0] "," 1]
If the request contains multiple X-Forwarded-For headers, your code just take the latest header value. Not the first one.