feat(#8): Automated bot detection with temp-ban and CAPTCHA #24

Merged
ti-paul merged 1 commit from feature/8-bot-detection into main 2026-06-12 05:39:15 +00:00
Member

Closes #8

New: server/botDetection.js

  • Rate limiting (per-minute, per-hour)
  • Timing uniformity detection
  • Grid/line pattern detection
  • Strike system + CAPTCHA threshold
  • Temp-ban with auto-expiry
  • Math CAPTCHA generation/verification

Server Integration

  • Analysis on every pixel placement
  • Auto-strike + temp-ban + disconnect
  • CAPTCHA challenge for flagged users

27 tests pass.

Closes #8 ## New: server/botDetection.js - Rate limiting (per-minute, per-hour) - Timing uniformity detection - Grid/line pattern detection - Strike system + CAPTCHA threshold - Temp-ban with auto-expiry - Math CAPTCHA generation/verification ## Server Integration - Analysis on every pixel placement - Auto-strike + temp-ban + disconnect - CAPTCHA challenge for flagged users 27 tests pass.
feat(#8): automated bot detection with temp-ban and CAPTCHA
Some checks failed
CI / test (pull_request) Failing after 0s
ad3cf6e575
New module server/botDetection.js:
- analyzePlacement: rate limiting, timing uniformity, grid patterns
- calculateRiskScore/getRiskLevel: risk assessment (0-100)
- Strike system with configurable CAPTCHA threshold
- tempBan/unban: auto temp-ban for bot-like behavior
- generateCaptcha/verifyCaptcha: math-based CAPTCHA challenges
- getDetectionStatus: per-user detection overview
- Activity window with 200-event history

Server integration:
- Bot analysis on every pixel placement
- Auto-strike on suspicious/bot behavior
- Temp-ban enforcement (disconnect + block)
- CAPTCHA challenge for flagged users
- Bot detection logging

27 new tests. Closes #8.
ti-paul left a comment
No description provided.
27 tests. Pattern detection + strikes + CAPTCHA. LGTM.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
les_clankeurs/pixel-clash!24
No description provided.