From e90ea1631ce72026d63f7fa2729b89b8968e2992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 5 Feb 2026 12:11:32 +0100 Subject: [PATCH] first commit --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0a1706d..e7aae9a 100644 --- a/README.md +++ b/README.md @@ -51,14 +51,14 @@ python ip_analyzer.py By default the app listens on: -- Web UI: -- API docs: +- Web UI: +- API docs: You can change host/port in `ip_analyzer.py` if needed. ## Usage (Web UI) -1. Open in your browser. +1. Open in your browser. 2. Paste IP addresses into the textarea. - Lines, spaces, commas, semicolons and tabs are all accepted. 3. Click **"Analyze IP Addresses"**. @@ -71,7 +71,7 @@ You can change host/port in `ip_analyzer.py` if needed. ### Analyze IPs ```bash -curl -X POST http://localhost:5000/api/analyze \ +curl -X POST http://localhost:8799/api/analyze \ -H "Content-Type: application/json" \ -d '{"ips": "1.1.1.1, 8.8.8.8, 9.9.9.9"}' ``` @@ -82,7 +82,7 @@ Example in Python: import requests resp = requests.post( - "http://localhost:5000/api/analyze", + "http://localhost:8799/api/analyze", json={"ips": "1.1.1.1, 8.8.8.8, 9.9.9.9"}, ) data = resp.json() @@ -94,7 +94,7 @@ for row in data["results"]: ### Export IPSet Rules ```bash -curl -X POST http://localhost:5000/api/export/ipset \ +curl -X POST http://localhost:8799/api/export/ipset \ -H "Content-Type: application/json" \ -d '{"ips": ["1.1.1.1", "8.8.8.8"], "timeout": 86400}' ```