Die Datenbank dieses Identifizierungsprogramms ist eine kostenlose IP-Datenbank und eine IP-Offline-Adressdatenbank. Unterstützt die Umwandlung von IP in strukturierte Informationen zu Land, Provinz, Stadt, Kreis, Betreiber und Region
0, das System ist offline und der Code enthält bereits das IPV4+IPV6-Offline-Paket.
1. Die IPV4-Datenbank basiert auf der IP-Bibliothek von Innocence. Informationen zur IP-Adresskorrektur und zur neuesten Adresse finden Sie direkt auf der offiziellen Website von Innocence. Unter dem folgenden Link finden Sie die IPV6-Datenbank.
2. Reines IP-Identifikationsalgorithmus-Quellnetzwerk.
3. Das strukturierte Programm ist meiner Fantasie im Jahr 2012 entsprungen.
Wenn reine IP-Daten gespeichert werden, sind sie nicht strukturiert, daher ist es unvermeidlich, dass bei der Analyse durch strukturierte Programme Fehler auftreten. Inländische IP-Daten können Provinzen und grundsätzlich Städte identifizieren. Betreiber- und Kreisdaten hängen vom Glück ab.
Die aktuelle Version ist 3.x (ipv4+ipv6). Wenn Sie 2.x benötigen, besuchen Sie bitte https://github.com/itbdw/ip-database/tree/2.x
Derzeit ist 3.x nahtlos mit Version 2.x kompatibel und kann theoretisch direkt aktualisiert werden.
composer require 'itbdw/ip-database' ^3.0
// Wenn Sie ein Framework (z. B. Laravel) verwenden, müssen Sie es je nach tatsächlicher Situation grundsätzlich nicht manuell einführen //require 'vendor/autoload.php';use itbdwIpIpLocation;//0Configuration used echo json_encode(IpLocation ::getLocation($ip), JSON_UNESCAPED_UNICODE) "n" //Benutzerdefinierten Dateipfad $qqwry_filepath = unterstützen '/abspath/qqwry.dat';$ipv6wry_path = '/abspath/ipv6wry.db';echo json_encode(IpLocation::getLocation($ip, $qqwry_filepath), JSON_UNESCAPED_UNICODE) .
Erfolg haben
{ „ip“: „163.177.65.160“, „country“: „China“, „province“: „Guangdong“, „city“: „Shenzhen City“, „county“: „“, „isp“: „China Unicom " , "area": "Tencent Computer System Unicom Node, Stadt Shenzhen, Provinz Guangdong, China"}
abnormal
{ „error“: „IP ungültig“}
cd 进入 ip-database 目录 ,composer install php tests/ip.php {"ip":"172.217.25.14","country":"美国","province":"","city":"","county":"","area":"美国 Google全球边缘网络","isp":""} {"ip":"140.205.172.5","country":"中国","province":"上海","city":"","county":"","area":"中国上海 阿里云","isp":""} {"ip":"123.125.115.110","country":"中国","province":"北京","city":"","county":"","area":"中国北京 北京百度网讯科技有限公司联通节点(BGP)","isp":"联通"} {"ip":"221.196.0.0","country":"中国","province":"天津","city":"河北区","county":"","area":"中国天津河北区 联通","isp":"联通"} {"ip":"60.195.153.98","country":"中国","province":"北京","city":"顺义区","county":"","area":"中国北京顺义区 后沙峪金龙网吧","isp":""} {"ip":"218.193.183.35","country":"中国","province":"上海","city":"","county":"","area":"中国上海 D27-707","isp":""} {"ip":"210.74.2.227","country":"中国","province":"北京","city":"","county":"","area":"中国北京 实验学院机房","isp":""} {"ip":"162.105.217.0","country":"中国","province":"北京","city":"","county":"","area":"中国北京 4区-4f","isp":""} {"ip":"fe80:0000:0001:0000:0440:44ff:1233:5678","country":"局域网","province":"","city":"","county":"","area":"局域网 本地链路单播地址","isp":""} {"ip":"2409:8900:103f:14f:d7e:cd36:11af:be83","country":"中国","province":"北京","city":"","county":"","area":"中国北京 中国移动CMNET网络","isp":"移动"} php tests/ip.php -i 58.196.128.0 {"ip":"58.196.128.0","country":"中国","province":"上海","city":"","county":"","area":"中国上海 上海交通大学","isp":""} php tests/ip.php -i 2409:8a00:6c1d:81c0:51b4:d603:57d1:b5ec {"ip":"2409:8a00:6c1d:81c0:51b4:d603:57d1:b5ec","country":"中国","province":"北京","city":"","county":"","area":"中国北京 中国移动公众宽带","isp":"移动"}
Es wird empfohlen, dass Tencent Cloud https://mirrors.cloud.tencent.com/help/composer.html beschleunigt
Grund Nr. 42
Auch dieses Projekt ist das Ergebnis vieler Tage und Nächte des Nachdenkens. Wenn Sie glauben, dass es für Sie hilfreich ist, bedanken Sie sich mit einem Handschlag.
1. Innocence IP-Bibliothek (muss EXE installieren und dekomprimieren, um das Offline-Paket zu erhalten) https://www.cz88.net/help?id=free
2. IPV6 (Offline-Download-Paket ist nicht mehr verfügbar) https://ip.zxinc.org/ipquery/