This commit is contained in:
jake committed 2012-06-11 11:14:16 -04:00
1 parent db5eba9952
commit 3ee4bbf408
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
simpip
simpip.com
=========
A very simple IP utility that shows the user's IP address–and only the user's IP address–on a plaintext page using PHP.
+1 -1
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'] ?>