From 07b5025b0b57e3573ccaf128087e0acf8f24cdeb Mon Sep 17 00:00:00 2001 From: Malin Date: Tue, 10 Mar 2026 07:57:16 +0100 Subject: [PATCH] fix: CF7 bypass, auto-flush, layout, contrast, IP geo v2.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CF7: - Add wpcf7_spam filter registered before is_admin() early-return so CF7 AJAX submissions (admin-ajax.php) are properly validated - Exclude CF7 posts from generic catch-all (prevent double-checking) Auto-flush: - Add maybe_flush_overdue() with 5-min transient lock, hooked to shutdown action so every PHP request can trigger a flush if overdue - No longer depends solely on WP-Cron firing Dashboard layout: - Top Attackers moved into right column below live feed - Viewport-fill layout: body/main use flex+overflow:hidden so content stays in view; left col scrolls independently if needed - Feed panel takes flex:1, attackers panel capped at 260px Colors: - --dim: #006600 → #44bb77 (legible secondary text, ~5:1 contrast) - --dim2: #228844 added for slightly darker secondary use - --muted kept dark for backgrounds only; border lightened slightly IP geo (server-side, async, non-blocking): - country + asn columns added to blocks table (migration-safe) - enrichIP() calls ip-api.com free HTTP API per unique IP, cached 1h - Background job enriches historic rows missing country (5 per 20s) - Stats and live feed now include country code + ASN - Dashboard shows country flag emoji in feed rows and attackers table - Full AS name shown as tooltip on ASN column Co-Authored-By: Claude Sonnet 4.6 --- api/public/index.html | 743 +++++++++++++++++++----------------------- api/server.js | 78 ++++- honeypot-fields.php | 30 +- 3 files changed, 437 insertions(+), 414 deletions(-) diff --git a/api/public/index.html b/api/public/index.html index a92c45d..e9f33f3 100644 --- a/api/public/index.html +++ b/api/public/index.html @@ -6,21 +6,21 @@ HONEYPOT // NETWORK MONITOR @@ -346,7 +349,6 @@ footer a:hover { color: var(--green2); }
-
@@ -370,7 +372,6 @@ footer a:hover { color: var(--green2); }
-
▶ MOST ATTACKED FORM (30D): @@ -378,23 +379,21 @@ footer a:hover { color: var(--green2); }
-
+
-
▶ 24H ACTIVITY TREND
-
+
-
▶ ATTACK BREAKDOWN // LAST 30 DAYS
@@ -411,7 +410,6 @@ footer a:hover { color: var(--green2); }
-
▶ BLOCK REASONS // LAST 30 DAYS
@@ -421,41 +419,44 @@ footer a:hover { color: var(--green2); }
- -
-
- ▶ LIVE THREAT FEED - 0 events + +
+ +
+
+ ▶ LIVE THREAT FEED + 0 events +
+
+
-
- + +
- -
-
▶ TOP ATTACKERS // LAST 30 DAYS
-
- - - - - - - - - - - - -
RANKIP ADDRESSTOTAL HITSFREQUENCY
Loading…
-
-
-