Rocket-boy_1877
Jun 01, 2015Nimbostratus
how to replace the address of the True-Client-ip header to x-forwarded-for header?
I am having issues passing the True-Client-IP from AKAMAI.
They pass the end users IP via a variable called True-CLient-IP
Does anyone know an easy way to be able replace from True-Client-ip addr to X-Forwarded-for addr.
===
I want to replace from the address of the True-Client-ip to x-forwarded-for. However, if the existing x-forwarded-for header, it is replace by overwriting, If not, inserting the x-forwarded-for.
forexample)
• True-Client-IP: 1.1.1.1 ==>X-FORWARD-FOR: 1.1.1.1
• True-Client-IP: 1.1.1.1 & X-FORWARD-FOR: 2.2.2.2,3.3.3.3 ==>X-FORWARD-FOR: 1.1.1.1
thank u