ip-to-hosting
Version:
This package allows you to check whether an IP address belongs to a hosting provider or not. In case the IP address can be successfully linked to a hosting provider (datacenter), this module will return the meta information for the hosting provider.
22 lines (18 loc) • 532 B
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<title>IP to Hosting Example Browser</title>
<meta name="description" content="IP to Hosting Example">
<meta name="author" content="ipapi.is">
</head>
<body>
<pre id="hosting"></pre>
<script type="text/javascript" src="dist/ipToHosting.min.js"></script>
<script type="text/javascript">
ipToHosting('43.33.44.11').then((res) => {
document.getElementById('hosting').innerText = JSON.stringify(res, null, 2);
});
</script>
</body>
</html>