9 Commits
Author SHA1 Message Date
Tizian Maxime Weigt a8bb077a9c Add IP to ASN lookup functionality
This PHP script handles IP address input, validates it, caches results, and performs a binary search on a database to find ASN information. It also includes a class for ASN configuration and a function to display country names based on locale.
2026-03-10 14:59:35 +01:00
Tizian Maxime Weigt f0e11c3372 Fix typos and enhance README content
Auto-detect Client IP:
The API now supports requests without the ip query parameter.
When this parameter is missing, the backend automatically detects and uses the requesting client’s IP address.
This enables quick ASN lookups for the caller’s own address without any client-side logic.

Updated Documentation:
The API documentation explains this behavior, showing example requests and the resulting JSON.
The Mermaid flowchart clearly visualizes the updated logic:

If ip is provided, use it.

Otherwise, seamlessly fall back to the real client IP.

User-Friendly Experience:
This change improves ease-of-use for web tools, scripts, and interactive diagnostics, allowing users to retrieve ASN info for their public IP in one step, with no parameters needed.

Backward Compatibility:
All existing query and locale options work as before, ensuring compatibility for integrators.

Consistency & Reliability:
The automatic fallback only picks up the genuine client address, maintaining high reliability and transparency in ASN and provider results.
2025-09-18 11:16:51 +02:00
Tizian Maxime Weigt a9105e10d5 Update README.md 2025-08-25 00:42:55 +02:00
Tizian Maxime Weigt 15cbd516ab Update README.md 2025-08-24 21:28:01 +02:00
Tizian Maxime Weigt 95608888ff Update README.md 2025-08-24 16:23:49 +02:00
Tizian Maxime Weigt 21c5d43abc Update error section in README with possible errors 2025-08-24 15:58:48 +02:00
Tizian Maxime Weigt bd77984bcd Update README to include provider logo information 2025-08-24 15:57:19 +02:00
Tizian Maxime Weigt 404ae20cf0 Update README.md 2025-08-24 15:53:39 +02:00
Tizian Maxime Weigt d86124a7ac Initial commit 2025-08-24 15:53:15 +02:00