From bd47fb304f7c632b3b8c831f8ff35acba729deb2 Mon Sep 17 00:00:00 2001 From: Primrose Date: Sun, 6 Nov 2022 22:25:10 -0500 Subject: [PATCH] Update ip-info/index.php --- ip-info/index.php | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) 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

"; ?>