mirror of
https://github.com/NetworkCats/rustyip.git
synced 2026-11-15 00:15:02 +00:00
230 lines
12 KiB
HTML
230 lines
12 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>What is my IP address? - {{ site_domain }}</title>
|
|
<meta name="description" content="Find your public IP address instantly. Look up geolocation, ASN, organization, and proxy/VPN/Tor detection for any IP address.">
|
|
<link rel="canonical" href="https://{{ site_domain }}/">
|
|
<meta name="theme-color" content="#007AFF" media="(prefers-color-scheme: light)">
|
|
<meta name="theme-color" content="#0A84FF" media="(prefers-color-scheme: dark)">
|
|
<meta property="og:title" content="What is my IP address? - {{ site_domain }}">
|
|
<meta property="og:description" content="Find your public IP address instantly. Look up geolocation, ASN, organization, and proxy/VPN/Tor detection for any IP address.">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:url" content="https://{{ site_domain }}/">
|
|
<meta name="twitter:card" content="summary">
|
|
<meta name="twitter:title" content="What is my IP address? - {{ site_domain }}">
|
|
<meta name="twitter:description" content="Find your public IP address instantly. Look up geolocation, ASN, organization, and proxy/VPN/Tor detection for any IP address.">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link rel="preconnect" href="https://cdnjs.cloudflare.com" crossorigin>
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;600&display=swap">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.5.5/css/simple-line-icons.min.css">
|
|
<link rel="stylesheet" href="/static/style.css?v={{ css_version }}">
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<form method="GET" action="/" class="search-form" role="search">
|
|
<div class="search-input-wrap">
|
|
<label for="ip-search" class="sr-only">Search IP address</label>
|
|
<i class="icon-magnifier search-icon" aria-hidden="true"></i>
|
|
<input
|
|
id="ip-search"
|
|
type="text"
|
|
name="ip"
|
|
placeholder="Type to search IP data"
|
|
value="{{ query }}"
|
|
autocomplete="off"
|
|
autocapitalize="none"
|
|
spellcheck="false"
|
|
>
|
|
</div>
|
|
</form>
|
|
|
|
<h1 class="ip-display">{{ ip }}</h1>
|
|
|
|
<table class="info-table" aria-label="IP address information">
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row">ASN</th>
|
|
<td>{{ asn }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Org</th>
|
|
<td>{{ org }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Country</th>
|
|
<td>{{ country }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">City</th>
|
|
<td>{{ city }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Proxy</th>
|
|
<td>{% if is_proxy %}<i class="icon-check bool-true" aria-hidden="true"></i><span class="sr-only">Yes</span>{% else %}<i class="icon-minus bool-false" aria-hidden="true"></i><span class="sr-only">No</span>{% endif %}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">VPN</th>
|
|
<td>{% if is_vpn %}<i class="icon-check bool-true" aria-hidden="true"></i><span class="sr-only">Yes</span>{% else %}<i class="icon-minus bool-false" aria-hidden="true"></i><span class="sr-only">No</span>{% endif %}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Hosting</th>
|
|
<td>{% if is_hosting %}<i class="icon-check bool-true" aria-hidden="true"></i><span class="sr-only">Yes</span>{% else %}<i class="icon-minus bool-false" aria-hidden="true"></i><span class="sr-only">No</span>{% endif %}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Tor</th>
|
|
<td>{% if is_tor %}<i class="icon-check bool-true" aria-hidden="true"></i><span class="sr-only">Yes</span>{% else %}<i class="icon-minus bool-false" aria-hidden="true"></i><span class="sr-only">No</span>{% endif %}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<section class="faq" aria-label="Frequently Asked Questions">
|
|
<h2 class="faq-title">FAQ</h2>
|
|
|
|
<details open>
|
|
<summary>How to use this service from the command line</summary>
|
|
<div class="faq-content">
|
|
<p>You can use various command-line tools such as curl, httpie, and wget to use this service. Taking the most popular one, curl, as an example:</p>
|
|
<p>Query current IP:</p>
|
|
<pre><code>curl {{ site_domain }}</code></pre>
|
|
<p>Query information for your own IP:</p>
|
|
<pre><code>curl {{ site_domain }}/asn
|
|
|
|
curl {{ site_domain }}/org
|
|
|
|
curl {{ site_domain }}/country
|
|
|
|
curl {{ site_domain }}/city
|
|
|
|
curl {{ site_domain }}/proxy
|
|
|
|
curl {{ site_domain }}/vpn
|
|
|
|
curl {{ site_domain }}/hosting
|
|
|
|
curl {{ site_domain }}/tor</code></pre>
|
|
<p>Or display all information in JSON format:</p>
|
|
<pre><code>curl {{ site_domain }}/json
|
|
{
|
|
"ip": "1.1.1.1",
|
|
"continent": { ... },
|
|
"country": { ... },
|
|
"city": { ... },
|
|
"location": { ... },
|
|
"asn": { ... },
|
|
"proxy": { ... }
|
|
}</code></pre>
|
|
<p>Query information for a specific IP:</p>
|
|
<pre><code>curl {{ site_domain }}/json?ip=1.1.1.1
|
|
{
|
|
"ip": "1.1.1.1",
|
|
"continent": { ... },
|
|
"country": { ... },
|
|
"city": { ... },
|
|
"location": { ... },
|
|
"asn": { ... },
|
|
"proxy": { ... }
|
|
}</code></pre>
|
|
</div>
|
|
</details>
|
|
|
|
<details open>
|
|
<summary>How to force the display of my IPv4 or IPv6 address?</summary>
|
|
<div class="faq-content">
|
|
<p>You can use <code>curl -4</code> or <code>curl -6</code> to view only your IPv4 or IPv6 address respectively.</p>
|
|
</div>
|
|
</details>
|
|
|
|
<details open>
|
|
<summary>How to get a JSON format response?</summary>
|
|
<div class="faq-content">
|
|
<p>You can send a request to the <code>/json</code> endpoint, or send a request with an <code>application/json</code> header.</p>
|
|
</div>
|
|
</details>
|
|
|
|
<details open>
|
|
<summary>Can I automate calls to your service via programs?</summary>
|
|
<div class="faq-content">
|
|
<p>Certainly, but you must adhere to our rate limits. Under normal conditions, the rate limit is 30 RPM (Requests Per Minute); under high load, we will increase the restriction to 10-5 RPM.</p>
|
|
<p>Our API is only suitable for manual calls or small-scale projects. If your website uses our API to query visitor IPs, please ensure you use a message queue to send requests to avoid blocking. If your project has high traffic or is latency-sensitive, please use our open-source offline database: <a href="https://github.com/NetworkCats/Merged-IP-Data">Merged IP Database</a>, which is the same database used by this project.</p>
|
|
</div>
|
|
</details>
|
|
|
|
<details open>
|
|
<summary>Where does the IP data come from?</summary>
|
|
<div class="faq-content">
|
|
<p>IP geographic data primarily comes from the free databases of MaxMind and DB-IP; AS data comes from IPinfo's free database; and IP proxy data comes from my own <a href="https://github.com/NetworkCats/OpenProxyDB">OpenProxyDB</a> database.</p>
|
|
<p>Data Attributions:</p>
|
|
<ul>
|
|
<li>MaxMind GeoLite2: <a href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a></li>
|
|
<li>IPinfo Lite: <a href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a></li>
|
|
<li>DB-IP: <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a></li>
|
|
<li>RouteViews ASN: <a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0</a></li>
|
|
<li>OpenProxyDB: <a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0</a></li>
|
|
</ul>
|
|
</div>
|
|
</details>
|
|
|
|
<details open>
|
|
<summary>Can I run my own service?</summary>
|
|
<div class="faq-content">
|
|
<p>Yes, the source code and database for this project are both open-source and hosted on GitHub:</p>
|
|
<ul>
|
|
<li><a href="https://github.com/NetworkCats/rustyip">https://github.com/NetworkCats/rustyip</a></li>
|
|
<li><a href="https://github.com/NetworkCats/Merged-IP-Data">https://github.com/NetworkCats/Merged-IP-Data</a></li>
|
|
</ul>
|
|
</div>
|
|
</details>
|
|
|
|
<details open>
|
|
<summary>How is this website different from other IP lookup sites?</summary>
|
|
<div class="faq-content">
|
|
<p>The biggest difference is that our database includes proxy-related information, and the proxy intelligence we provide is highly accurate. We have privately compared it with commercial proxy detection databases like IPinfo; our database's precision is fully comparable to commercial ones, and it is even more accurate in detecting residential proxies.</p>
|
|
<p>Secondly, our geographic coverage for IPv6 is more comprehensive because we merge multiple databases to provide more complete data.</p>
|
|
<p>Our UX is also better than any IP lookup site on the market. The site runs without any JavaScript, and we only load a minimal amount of external resources (fonts, icons), making the initial load speed extremely fast.</p>
|
|
</div>
|
|
</details>
|
|
|
|
<details open>
|
|
<summary>Is this service stable?</summary>
|
|
<div class="faq-content">
|
|
<p>The business logic of this service is written entirely in Rust, offering excellent performance that ensures the site remains operational even under L7 DDoS attacks. The site runs on a VPS with 2 cores and 2 GB of RAM, which is already overkill for this setup -- unless we encounter a massive L7 DDoS attack, though we have Cloudflare in front of us.</p>
|
|
<p>Running this website only costs me $18.00 per month. Because the cost is so low, I will not stop operations due to hardware costs in the foreseeable future, nor will I add any advertisements.</p>
|
|
<p>Rest assured, this service will definitely not "Rug Pull."</p>
|
|
</div>
|
|
</details>
|
|
|
|
<details open>
|
|
<summary>How can I sponsor this service?</summary>
|
|
<div class="faq-content">
|
|
<p>I accept cryptocurrency donations. If you would like to sponsor, please contact: <a href="mailto:networkcatlol@gmail.com">networkcatlol@gmail.com</a></p>
|
|
</div>
|
|
</details>
|
|
</section>
|
|
</main>
|
|
|
|
<footer class="site-footer">
|
|
<div class="footer-inner">
|
|
<p class="footer-license">Website source code licensed under <a href="https://www.gnu.org/licenses/agpl-3.0.html">AGPL-3.0</a></p>
|
|
<nav class="footer-links" aria-label="Project links">
|
|
<a href="https://github.com/NetworkCats/rustyip"><i class="icon-social-github" aria-hidden="true"></i> Website Source</a>
|
|
<span class="footer-sep" aria-hidden="true">|</span>
|
|
<a href="https://github.com/NetworkCats/Merged-IP-Data"><i class="icon-social-github" aria-hidden="true"></i> IP Database</a>
|
|
</nav>
|
|
<div class="footer-attribution">
|
|
<p>IP data provided by:</p>
|
|
<ul>
|
|
<li><a href="https://www.maxmind.com/">MaxMind GeoLite2</a> (<a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>)</li>
|
|
<li><a href="https://ipinfo.io/">IPinfo Lite</a> (<a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>)</li>
|
|
<li><a href="https://db-ip.com/">DB-IP</a> (<a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>)</li>
|
|
<li><a href="https://www.routeviews.org/">RouteViews ASN</a> (<a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0</a>)</li>
|
|
<li><a href="https://github.com/NetworkCats/OpenProxyDB">OpenProxyDB</a> (<a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0</a>)</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|