IP地址查询工具 - 免费查询IP信息

IP地址查询工具

<?php
if(isset($_GET['ip'])){  
	$ip = $_GET['ip'];  
	$details = json_decode(file_get_contents("http://ipinfo.io/{$ip}/json"));  
	echo "<h2>查询结果:</h2>";  
	echo "<p><strong>IP地址:</strong> {$details->ip}</p>";  
	echo "<p><strong>所在地区:</strong> {$details->region}, {$details->country}</p>";  
	echo "<p><strong>运营商:</strong> {$details->org}</p>";  
}
?>
IP地址查询工具 - 免费查询IP信息

原文地址: https://www.cveoy.top/t/topic/lSlY 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录