感谢您的关注,我们一直致力于为您提供放心、满意的服务。
<?php
$ip = $_SERVER['REMOTE_ADDR'] ?? '';
$ua = $_SERVER['HTTP_USER_AGENT'] ?? '';
header('Content-Type: text/plain; charset=utf-8');
echo "您的IP: $ip\n";
echo "您的UA: $ua\n";