Hi, I thought I’d add some additional info to this thread because I ran into some issues regarding client-ip
. Circumstances may have changed since the last posting so I thought this might help others.
While client-ip
was showing up in my Lambda function, I was seeing an unusual IP address, 100.x.x.x
. I guess it’s an internal range Netlify might be using.
In any case, get the visitor’s correct IP address by using the extension NF added to the headers: x-nf-client-connection-ip
.
Update: just came across a related thread indicating this is indeed the new solution: Is the "Client-IP" header going to be supported long term?