使用PHP查找谁在托管网站 [英] Find who is hosting a website using PHP

查看:127
本文介绍了使用PHP查找谁在托管网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个网站来显示一个网站的信息,如ip,位置,坐标,国旗,dns条目等等。我设法收集一切,但唯一剩下的就是找到谁在托管网站。

I am developing a website to show information about a website like ip, location, coordinates, flag of country, dns entries and more. I managed to collect everything, but the only thing left is to find who is hosting the website.

我在whoishostingthis.com看到可以找到数据中心的名称或任何领域的主机,这正是我想要的。我做了大量关于如何收集数据的研究,但迄今没有任何工作。我知道它与反向dns有关,但我不知道如何使用反向dns获取数据中心的名称。

I saw in whoishostingthis.com that you could find the name of datacenter or host of any domain which is exactly what i wanted. I did a lot of research on how to collect that data, but nothing worked till now. I know that it has something to do with reverse dns , but i dont know how to get the name of the datacenter using reverse dns.

我可以抓住名称来自whoishostingthis.com的主机使用curl并提取数据,但我不想这样做,因为它可能违反了他们的tos或某事。那么,有没有人知道如何收集这些数据?如果我可以找到(即使使用linux二进制或某些东西),我可以将它导入到php。

I could just grab the name of the host from whoishostingthis.com using curl and extract the data, but i dont want to do that as it might violate their tos or something. So, does anyone know how to collect that data? If i could find that anyhow (even using a linux binary or something), i could import that to php.

任何帮助将不胜感激。感谢:)

Any help would be appreciated. Thanks :)

编辑:只是让大家知道,我尝试使用来自arin的RESTful API,但问题是可以显示有关ip的组织信息在美国的地址,但如果它在北美以外,它只是显示区域知识产权局。例如,如果您转到 http://ip.nex.im/?q=wireshock。 com ,这是托管在美国,它显示hostdime公司,这是真的,但如果你去 http://ip.nex.im/?q=www.ovh.co.uk ,它只是显示RIPE网络协调中心。你可以尝试其他ip的http://ip.nex.im/?q=[IP或DOMAIN]。我找不到其他区域ip机构的api,如成熟或其他可以显示拥有该IP地址的组织。如果我找到一些有用的东西,我会做一个开放的api,任何人都可以使用。如果有人知道任何其他方式,请回复。谢谢:)

Just to let you guys know, i tried using the RESTful API from arin, but the problem is that it can display the organization information about the ip addresses in america, but if it is outside north america, it just displays the regional IP authority. For example, if you go to http://ip.nex.im/?q=wireshock.com , which is hosted in usa, it shows hostdime inc, which is true, but if you go to http://ip.nex.im/?q=www.ovh.co.uk , it just shows "RIPE Network Coordination Centre". You can try other ip's http://ip.nex.im/?q=[IP OR DOMAIN]. And i could not find an api for other regional ip authorities like ripe or others that can display the organization that owns the ip address. If i find something that works, i will make an open api that anyone can use. And if anyone knows any other way, please reply. Thanks :)

推荐答案

得到这个的最好方法是去源: ARIN

The best way to get this is by going to the source: ARIN

当然,你只能做出有经验的猜测。通常情况下,IP块的持有者将是您的主机提供商连接的一些较大的ISP。

Of course, you can only make educated guesses. Often times, the holder of the IP block will be some bigger ISP that your hosting provider connects to.

这篇关于使用PHP查找谁在托管网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆