From 2eea55196425567bdc62480f05a4083e019039f7 Mon Sep 17 00:00:00 2001 From: jbergner Date: Wed, 12 Nov 2025 03:33:16 +0100 Subject: [PATCH] Check-Gui added --- main.go | 207 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 206 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 6c9f100..028fe93 100644 --- a/main.go +++ b/main.go @@ -248,7 +248,8 @@ func main() { } // Server - http.Handle("/", instrumentFunc("gui", handleGUI)) + http.Handle("/", instrumentFunc("gui", checkhtml)) + http.Handle("/admin", instrumentFunc("admin", handleGUI)) http.Handle("/download/", instrumentFunc("download", handleDownload)) http.Handle("/whitelist", instrumentFunc("whitelist", handleWhitelist)) http.Handle("/check/", instrumentFunc("check", handleCheck)) @@ -826,6 +827,210 @@ func handleGUI(w http.ResponseWriter, r *http.Request) { _, _ = w.Write([]byte(html)) } +func checkhtml(w http.ResponseWriter, r *http.Request) { + html := ` + + + + + FLODP – IP Check + + + +
+
+

IP Check

+ FLODP Security Utility +
+

Prüfe schnell, ob eine IP in den Blocklisten gelistet ist. Die Abfrage nutzt den Endpunkt /check/<ip>.

+ +
+ +
+

Anfrage

+

Sende eine Abfrage an /check/<ip>

+
+
+ + + IPv4 oder IPv6. Es erfolgt eine leichte Client-Validierung. +
+
+ + +
+
+
+ + +
+

Ergebnis

+ + +
Noch keine Abfrage durchgeführt.
+ + + + +
+
+ +
+ © First-Line-Of-Defense-Project +
+
+ + + + ` + + w.Header().Set("Content-Type", "text/html; charset=utf-8") + w.WriteHeader(http.StatusOK) + _, _ = w.Write([]byte(html)) +} + func errorhtml(w http.ResponseWriter, r *http.Request) { html := `