<div dir="ltr">The X-Forwarded-For header is the one you want - you read it right to left, and the first address you don't recognize as yours is the user's IP. Anything further left then the first value you assume is spoofed and disregard. Your request may have multiple X-Forwarded-For headers - you read them last to first in addition to right to left. PHP has problems with the multiple X-Forwarded-For headers, as a workaround we use the real-ip module in Nginx to process the X-Forwarded-For header(s) and provide a PHP friendly value for application use.<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 11, 2016 at 11:22 AM, Ayberk Kimsesiz <span dir="ltr"><<a href="mailto:ayberk.kimsesiz@gmail.com" target="_blank">ayberk.kimsesiz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div>Everyone who visits our website has an IP address that seems as the Server IP. This is fixed by canceling the Varnish Cache. What settings we need to do to resolve this issue?<br><div><br></div><div><a href="http://imgur.com/a/Kh8sP" target="_blank">http://imgur.com/a/Kh8sP</a><br></div><div><br></div><div>Thanks</div></div>
<br>______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-misc</a><br></blockquote></div><br></div>