Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Process X-Forwarded-For header in correct order #3095

Closed
wants to merge 2 commits into from

Commits on Nov 29, 2012

  1. Process X-Forwarded-For header in correct order

    See http://en.wikipedia.org/wiki/X-Forwarded-For#Format. The IP addresses are appended to the right side so the server communicating with my managed proxy server is the last. This is the only value that can be trusted if I am behind managed proxy server, all others can be easily spoofed. The last value is also the equivalent of REMOTE_ADDR if I am not behind a reverse proxy.
    vrana committed Nov 29, 2012
    Copy the full SHA
    0742b4c View commit details
    Browse the repository at this point in the history
  2. Fix test

    vrana committed Nov 29, 2012
    Copy the full SHA
    3fc48a7 View commit details
    Browse the repository at this point in the history