Commit a2a3ffe
chore: consolidation & cleanup — detector, honeypot, dead cron, allowlist (#15)
- Single detector path: early_check now runs through the WebDecoy_Detector
wrapper (SDK BotDetector + WP signals) — the same one WooCommerce uses —
instead of the raw SDK detector. Score-neutral (the SDK ignores the extra
WP signals; request_path was already added).
- Removed the dead WebDecoy_Forms class: it was loaded but never instantiated
(fully unwired), and its daily-rotation idea already lives in the honeytoken
feature. The live inline honeypot remains the single honeypot implementation.
- Removed the dead webdecoy_sync_blocked_ips cron (scheduled but never had a
handler); existing installs get it cleared on upgrade and (de)activation.
- IP allowlist: is_allowlisted() existed but nothing wrote ip_allowlist and
nothing called it. Added a Blocking-tab field (IPs/CIDRs, validated on save)
and wired the check into early_check so allowlisted IPs bypass all detection.
- (SDK User-Agent staleness was already fixed under #1.)
Verified: allowlist exact + CIDR matching, no dangling WebDecoy_Forms
references, full suite green (41).
Closes #15. Part of #16.
Co-authored-by: Claude <noreply@anthropic.com>1 parent ba5674e commit a2a3ffe
5 files changed
Lines changed: 34 additions & 591 deletions
File tree
- admin/partials
- includes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
466 | 477 | | |
467 | 478 | | |
468 | 479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | 210 | | |
216 | 211 | | |
217 | 212 | | |
218 | 213 | | |
219 | 214 | | |
220 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
221 | 220 | | |
222 | 221 | | |
223 | 222 | | |
| |||
230 | 229 | | |
231 | 230 | | |
232 | 231 | | |
| 232 | + | |
| 233 | + | |
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
| |||
0 commit comments