gpt4 book ai didi

Detect if an IP Address is Hosting IP or ISP(检测IP地址是托管IP还是服务提供商)

转载 作者:bug小助手 更新时间:2023-10-25 16:32:57 32 4
gpt4 key购买 nike



Would like to know how to detect if an IP address belong to ISP Local Company (ADSL/Fibre Optique) or Website Hosting IP Company

我想知道如何检测IP地址是否属于ISP本地公司(ADSL/Fibre Optique)或托管IP公司的网站



Basically I'am searching some kind way to detect this

基本上,我正在寻找某种方法来检测这一点



Example:

示例:



78.46.91.39 : Hosting IP (Hetzner DE)
85.53.191.171 : ISP IP (Orange ES)


I had an idea to make an array of hosting name or ISP Name but it's too much and too long searching for smart coding idea.

我有一个想法是制作一个主机名称或运营商名称的数组,但搜索智能编码的想法太多太长了。


更多回答

What have you tried? Are you thinking to use whois data or a paid service?

你都试了些什么?你是在考虑使用谁的数据还是付费服务?

What are you using to do this? What are you intending to do with the knowledge?

你用什么来做这件事?你打算用这些知识做什么?

i'am just using whois lookup online website , and knowledge on hosting name.. , however now more & more hosting company and difficult to know of all them , so i'am asking if there some kind header information or anything else or some kind identified value or api ... i can retrieve in php to detect isp or hosting ip

我只是在使用世界卫生组织的在线搜索网站,以及关于主机名称的知识..然而,现在越来越多的托管公司,很难知道他们所有的,所以我问是否有一些标题信息或任何其他或某种识别的值或API…我可以在php中检索以检测isp或主机IP。

优秀答案推荐

There is no easy answer to know whether an IP address belongs to a hosting provider or normal ISP.

要知道IP地址是属于主机提供商还是属于普通的互联网服务提供商并非易事。


But in general, you can do the following (Based on https://ipapi.is/hosting-detection.html) to detect hosting IP ranges:

但一般来说,您可以执行以下操作(基于https://ipapi.is/hosting-detection.html)来检测托管IP范围:


Many large hosting providers publish their IP ranges on their website.

许多大型主机提供商在他们的网站上公布他们的IP范围。



Another approach is to consider the work of open source projects that try to find hosting IP addresses. Examples of such projects are:

另一种方法是考虑开源项目的工作,这些项目试图找到托管IP地址。这类项目的例子包括:



I hope that helps.

我希望这能帮上忙。


Edit:

编辑:


You can also directly use their free API to find out whether an IP address belongs to a hosting provider:

您也可以直接使用他们的免费接口来查看IP地址是否属于托管商:


https://api.ipapi.is/?q=103.13.210.35

Https://api.ipapi.is/?q=103.13.210.35


更多回答

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com