Anfrage
+Sende eine Abfrage an /check/<ip>
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 := ` + +
+ + +Prüfe schnell, ob eine IP in den Blocklisten gelistet ist. Die Abfrage nutzt den Endpunkt /check/<ip>.
Sende eine Abfrage an /check/<ip>