🗃️ Committing everything that changed 🗃️
All checks were successful
release-tag / release-image (push) Successful in 3m45s

rootfs/opt/echoip/html/index.html
This commit is contained in:
casjay 2025-06-11 13:27:30 -04:00
parent c4bbf9120f
commit 1d144a16c3
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -10,10 +10,7 @@
/> />
<link rel="canonical" href="https://ifconfig.co/" /> <link rel="canonical" href="https://ifconfig.co/" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet" />
href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400&display=swap"
rel="stylesheet"
/>
<link <link
rel="stylesheet" rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/pure/1.0.0/pure-min.css" href="https://cdnjs.cloudflare.com/ajax/libs/pure/1.0.0/pure-min.css"
@ -30,17 +27,14 @@
{{ template "script.html" . }} {{ template "styles.html" . }} {{ template "script.html" . }} {{ template "styles.html" . }}
</head> </head>
<body> <body style="margin-left: 1rem; margin-right: 1rem; text-align: center; margin-top: 2rem; margin-bottom: 2rem">
<div class="content"> <div class="content">
<div class="pure-g gutters center"> <div class="pure-g gutters center">
<div class="pure-u-1 pure-u-md-2-3"> <div class="pure-u-1 pure-u-md-2-3">
<div class="l-box"> <div class="l-box">
<h1>What is my IP address?</h1> <h1>What is my IP address?</h1>
<p><code class="ip">{{ .IP }}</code></p> <p><code class="ip">{{ .IP }}</code></p>
<p> <p>The best tool to find your own IP address, and information about it.</p>
The best tool to find your own IP address, and information about
it.
</p>
</div> </div>
</div> </div>
<div class="pure-u-1 pure-u-md-1-3"> <div class="pure-u-1 pure-u-md-1-3">
@ -50,20 +44,14 @@
<div class="pure-u pure-u-md-1"> <div class="pure-u pure-u-md-1">
<div class="leafcloud-logo"> <div class="leafcloud-logo">
<a href="https://malaks-us.github.io/jason" target="_blank"> <a href="https://malaks-us.github.io/jason" target="_blank">
<img <img src="https://avatars.githubusercontent.com/u/126880?v=4" width="72" height="72" />
src="https://avatars.githubusercontent.com/u/126880?v=4"
width="72"
height="72"
/>
</a> </a>
</div> </div>
</div> </div>
<div class="pure-u pure-u-md-1"> <div class="pure-u pure-u-md-1">
<p> <p>
This site is hosted by<br /> This site is hosted by<br />
<a href="https://casjaysdev.pro" target="_blank"> <a href="https://casjaysdev.pro" target="_blank"> Casjays Developments </a>
Casjays Developments
</a>
</p> </p>
</div> </div>
</div> </div>
@ -175,11 +163,8 @@
</table> </table>
{{ if .Country }} {{ if .Country }}
<p> <p>
This information is provided from the GeoLite2 database created by This information is provided from the GeoLite2 database created by MaxMind, available from
MaxMind, available from <a href="https://www.maxmind.com" target="_blank">www.maxmind.com</a>
<a href="https://www.maxmind.com" target="_blank"
>www.maxmind.com</a
>
</p> </p>
{{ end }} {{ if .Latitude }} {{ end }} {{ if .Latitude }}
<div class="pure-u-1 pure-u-md-1-1"> <div class="pure-u-1 pure-u-md-1-1">
@ -201,62 +186,17 @@
<div class="pure-u-1 pure-u-md-1-2"> <div class="pure-u-1 pure-u-md-1-2">
<div class="l-box"> <div class="l-box">
<h2>How do I get this programmatically?</h2> <h2>How do I get this programmatically?</h2>
<p> <p>With the widget below you can build your query, and see what the result will look like.</p>
With the widget below you can build your query, and see what the
result will look like.
</p>
<div class="pure-form"> <div class="pure-form">
<!-- COMMAND WIDGET --> <!-- COMMAND WIDGET -->
<div class="input-buttons"> <div class="input-buttons">
<button <button name="ip" class="pure-button widget-select" onclick="changeInput(this.name, this)">ip</button>
name="ip" <button name="country" class="pure-button widget-select" onclick="changeInput(this.name, this)">country</button>
class="pure-button widget-select" <button name="country-iso" class="pure-button widget-select" onclick="changeInput(this.name, this)">country-iso</button>
onclick="changeInput(this.name, this)" <button name="city" class="pure-button widget-select" onclick="changeInput(this.name, this)">city</button>
> <button name="asn" class="pure-button widget-select" onclick="changeInput(this.name, this)">asn</button>
ip <button name="json" class="pure-button widget-select" onclick="changeInput(this.name, this)">json</button>
</button> <button name="port" class="pure-button widget-select" onclick="changeInput(this.name, this)">port</button>
<button
name="country"
class="pure-button widget-select"
onclick="changeInput(this.name, this)"
>
country
</button>
<button
name="country-iso"
class="pure-button widget-select"
onclick="changeInput(this.name, this)"
>
country-iso
</button>
<button
name="city"
class="pure-button widget-select"
onclick="changeInput(this.name, this)"
>
city
</button>
<button
name="asn"
class="pure-button widget-select"
onclick="changeInput(this.name, this)"
>
asn
</button>
<button
name="json"
class="pure-button widget-select"
onclick="changeInput(this.name, this)"
>
json
</button>
<button
name="port"
class="pure-button widget-select"
onclick="changeInput(this.name, this)"
>
port
</button>
<input <input
id="portInput" id="portInput"
type="number" type="number"
@ -277,21 +217,9 @@
<fieldset> <fieldset>
<label for="ipInput"> <label for="ipInput">
Check another IP (optional) Check another IP (optional)
<input <input id="ipInput" class="" type="text" placeholder="IP to query" onkeyup="updateIP(this.value)" />
id="ipInput"
class=""
type="text"
placeholder="IP to query"
onkeyup="updateIP(this.value)"
/>
</label> </label>
<button <button type="button" class="pure-button" onclick="navigate()">Open</button>
type="button"
class="pure-button"
onclick="navigate()"
>
Open
</button>
</fieldset> </fieldset>
</form> </form>
</div> </div>
@ -302,25 +230,19 @@
<h3>How do I force IPv4 or IPv6 lookup?</h3> <h3>How do I force IPv4 or IPv6 lookup?</h3>
<p> <p>
As of 2018-07-25 it's no longer possible to<br /> As of 2018-07-25 it's no longer possible to<br />
force protocol using the <i>v4</i> and force protocol using the <i>v4</i> and <i>v6</i> subdomains.<br />
<i>v6</i> subdomains.<br />
IPv4 or IPv6 still can be forced by passing the<br /> IPv4 or IPv6 still can be forced by passing the<br />
appropiate flag to your client,<br /> appropiate flag to your client,<br />
e.g <code>curl -4</code> or <code>curl -6</code>. e.g <code>curl -4</code> or <code>curl -6</code>.
</p> </p>
<h3>Can I force getting JSON?</h3> <h3>Can I force getting JSON?</h3>
<p> <p>
Setting the <code>Accept: application/json</code><br /> <span style="font-size: 1.1rem" style="font-size: 1.1rem">Setting the <code>Accept: application/json</code> header works as expected.</span
header works as expected. <br /> ><br />
<span style="font-size: 0.9rem" <span>IPV4: curl -q -LSsf -H "Accept: application/json" -4 {{ .Host }}</span>
>IPV4: curl -q -LSsf -H "Accept: application/json" -4 {{ .Host <br />
}}</span <span>IPV6: curl -q -LSsf -H "Accept: application/json" -6 {{ .Host }}</span>
>
<br /> <br />
<span style="font-size: 0.9rem"
>IPV6: curl -q -LSsf -H "Accept: application/json" -6 {{ .Host
}}</span
>
</p> </p>
<h3>Is automated use of this service permitted?</h3> <h3>Is automated use of this service permitted?</h3>
@ -329,34 +251,25 @@
The rate limit is in place to ensure a fair service for all. The rate limit is in place to ensure a fair service for all.
</p> </p>
<p> <p>
<em <em>Please limit automated requests to 1 request per minute</em>.<br />
>Please limit automated requests to 1 <br /> No guarantee is made for requests that exceed this limit. <br />
request per minute</em They may be rate-limited, with a 429 status code, or dropped entirely.
>. No guarantee is made <br />
for requests that exceed this limit. They may be <br />
rate-limited, with a 429 status code, or dropped entirely.
</p> </p>
<h3>Can I run my own service?</h3> <h3>Can I run my own service?</h3>
<p> <p>
Yes, the official source code <br /> Yes, the official source code <br />
and documentation is available at <br /> and documentation is available at <br />
<a href="https://github.com/mpolden/echoip" target="_blank" <a href="https://github.com/mpolden/echoip" target="_blank">https://github.com/mpolden/echoip</a>. <br /><br />
>https://github.com/mpolden/echoip</a
>. <br /><br />
My modified code can be found at<br /> My modified code can be found at<br />
<a <a href="https://github.com/casjaysdevdocker/ifconfig" target="_blank">https://github.com/casjaysdevdocker/ifconfig</a>.
href="https://github.com/casjaysdevdocker/ifconfig"
target="_blank"
>https://github.com/casjaysdevdocker/ifconfig</a
>.
</p> </p>
<br /><br /> <br /><br />
<h5 class="center"> <h4 class="center">
hosted on: REPLACE_HOST_NAME<br /> hosted on: REPLACE_HOST_NAME<br />
Server IPV4: REPLACE_CURRENT_IP_4<br /> Server IPV4: REPLACE_CURRENT_IP_4<br />
Server IPV6: REPLACE_CURRENT_IP_6<br /><br /> Server IPV6: REPLACE_CURRENT_IP_6<br /><br />
Last updated on: REPLACE_MODIFIED<br /> Last updated on: REPLACE_MODIFIED<br />
</h5> </h4>
</div> </div>
</div> </div>
</div> </div>