A10 X-forwarded-for _verified_
A10 supports both the legacy X-Forwarded-For and the standardized Forwarded header. The Forwarded header is more structured:
if [HTTP::header exists "X-Forwarded-For"] # Append the real IP to the existing list set existing_xff [HTTP::header "X-Forwarded-For"] set new_xff "$existing_xff, $real_ip" HTTP::header replace "X-Forwarded-For" $new_xff else # Insert new header HTTP::header insert "X-Forwarded-For" $real_ip a10 x-forwarded-for