1
mirror of https://github.com/jakejarvis/simpip.git synced 2025-04-26 06:55:21 -04:00
This commit is contained in:
Jake Jarvis 2012-06-11 11:14:16 -04:00
parent db5eba9952
commit 3ee4bbf408
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
simpip
simpip.com
=========
A very simple IP utility that shows the user's IP addressand only the user's IP addresson a plaintext page using PHP.

View File

@ -1 +1 @@
<?php header("Content-type: text/plain"); echo ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; ?>
<?php header("Content-type: text/plain"); echo ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'] ?>