24 lines
609 B
PHP
24 lines
609 B
PHP
|
<?php
|
||
|
$client_ip = $_SERVER['REMOTE_ADDR'];
|
||
|
$client_hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
|
||
|
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<title>IP Info - Snowcake</title>
|
||
|
<link rel="icon" type="image/x-icon" href="/assets/images/favicon.png">
|
||
|
<link rel="stylesheet" href="/main_theme.css">
|
||
|
<meta charset="UTF-8">
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>IP Info</h1>
|
||
|
<div>
|
||
|
<a href="/" class="button">🏠 Back to Home</a>
|
||
|
</div>
|
||
|
<div class="content">
|
||
|
Your IP address is: echo "<p>IP address: <b>$client_ip</b></p>";
|
||
|
Your hostname is: echo "<p>Hostname: <b>$client_hostname</b></p>";
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|
||
|
?>
|