Skip to content

Instantly share code, notes, and snippets.

@darkcolonist
Created March 3, 2023 08:31
Show Gist options
  • Save darkcolonist/64b14e6b7065e22cf991969be1fb36c6 to your computer and use it in GitHub Desktop.
Save darkcolonist/64b14e6b7065e22cf991969be1fb36c6 to your computer and use it in GitHub Desktop.
override $_SERVER["REMOTE_ADDR"] with $_SERVER["X-Forwarded-For"] apache configuration
RequestHeader set X-Forwarded-For %{REMOTE_ADDR}s
RemoteIPHeader X-Forwarded-For
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment