-
-
Save flatlinebb/dc5b8affc0ab7d6ee3f5e4c69a032d5b to your computer and use it in GitHub Desktop.
IP Chicken Clone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$ip = $_SERVER["REMOTE_ADDR"]; | |
$port = substr($_SERVER["REMOTE_PORT"],0,2); | |
$browser = $_SERVER["HTTP_USER_AGENT"]; | |
$hostname = gethostbyaddr($ip); | |
echo $ip; | |
echo " " . $browser; | |
echo " " . $hostname; | |
echo " " . $port; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment