diff --git a/ip-info/index.php b/ip-info/index.php index 4db0658..fcef31d 100644 --- a/ip-info/index.php +++ b/ip-info/index.php @@ -1,23 +1,7 @@ - - IP Info - Snowcake - - - - - -

IP Info

-
- 🏠 Back to Home -
-
- Your IP address is: echo "

IP address: $client_ip

"; - Your hostname is: echo "

Hostname: $client_hostname

"; -
- - + $client_ip = $_SERVER['REMOTE_ADDR']; + $client_hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); + + echo "

IP address: $client_ip

"; + echo "

Hostname: $client_hostname

"; ?>