[Labs-l] Full Text Reference Tool: Approved exposing of ip addresses to an external API

Simon Walker simon at stwalkerster.co.uk
Thu May 29 16:05:23 UTC 2014


On 29 May 2014 14:59, "Jake Orlowitz" <jorlowitz at gmail.com> wrote:
> The problem is that we get $_SERVER['REMOTE_ADDR'] as 10.68.16.4 instead
of the real, unique, remote IP address of the client.

Try $_SERVER['HTTP_X_FORWARDED_FOR'] instead. Note that this is supposed to
be a list of addresses, not just a single address.

Simon (stwalkerster)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/labs-l/attachments/20140529/d9f6a3ec/attachment-0001.html>


More information about the Labs-l mailing list