Skip to content

Instantly share code, notes, and snippets.

@philipnewcomer
Created May 16, 2017 11:50
Show Gist options
  • Save philipnewcomer/b6c72df1115ff85a6ab3e768c9e63ca7 to your computer and use it in GitHub Desktop.
Save philipnewcomer/b6c72df1115ff85a6ab3e768c9e63ca7 to your computer and use it in GitHub Desktop.
<?php
echo 'X-Forwarded-IP: ';
if ( isset( $_SERVER['X-Forwarded-IP'] ) ) {
echo $_SERVER['X-Forwarded-IP'];
}
echo '<br>REMOTE_ADDR: ';
if ( isset( $_SERVER['REMOTE_ADDR'] ) ) {
echo $_SERVER['REMOTE_ADDR'];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment