mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 15:05:00 +00:00
- Embed web UI (index.html, app.js, style.css) via go:embed - Title: 'IP Location & Status' instead of 'check-ip' - 'Show my IP Info' link for lookups of the visitor's own IP - Domain resolution with resolved_from field in JSON - Richer GeoIP fields: region ISO, continent, coordinates, traits, etc. - /api/raw debug endpoint for raw MaxMind records - net/geoip: expand Info struct and add LookupRaw method
37 lines
952 B
HTML
37 lines
952 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>IP Location & Status</title>
|
|
<link rel="stylesheet" href="/style.css">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>IP Location & Status</h1>
|
|
<p class="subtitle">Look up an IP address, domain, or your own IP against blocklists and GeoIP databases.</p>
|
|
|
|
<form class="search-form" autocomplete="off">
|
|
<input type="text" name="host" placeholder="Enter IP or domain…">
|
|
<button type="submit">Check</button>
|
|
</form>
|
|
|
|
<a href="#" class="my-ip-link" id="my-ip-link">Show my IP Info</a>
|
|
|
|
<div class="loading">
|
|
<span class="spinner"></span> Resolving and checking…
|
|
</div>
|
|
|
|
<div class="error-msg"></div>
|
|
|
|
<div class="result"></div>
|
|
|
|
<footer>
|
|
<a href="/healthz">/healthz</a>
|
|
</footer>
|
|
</div>
|
|
|
|
<script src="/app.js"></script>
|
|
</body>
|
|
</html>
|