LC Anti-Spam Registration
Prevent fake and automated bot registrations with lightweight honeypots, rate limiting, and intelligent username analysis.
Install in
LC Anti-Spam Registration provides comprehensive, multi-layer registration security and automated bot defense for WordPress. It prevents fake user accounts, spam registrations, and credential-stuffing bots from ever polluting your database β without frustrating real human visitors with annoying CAPTCHAs.
Whether you run a WooCommerce store, membership site, LMS portal, online community, or standard WordPress blog, automated bot registrations clog your database, skew conversion analytics, trigger unwanted transactional emails, and introduce severe security vulnerabilities.
LC Anti-Spam Registration operates at the gate: it evaluates registration requests in real time using lightweight behavioral honeypots, human timing algorithms, disposable email detection, and intelligent username pattern heuristics.
π‘οΈ Core Defensive Capabilities
- Invisible Honeypot Trap β Injects invisible fields into registration forms that automated bots inevitably fill out, instantly trapping and discarding malicious attempts without disturbing genuine users.
- Human Form-Timing Verification β Measures registration submission velocity. Bots submit forms within milliseconds; human users take time to type. Requests submitted below human speed thresholds are safely denied.
- Algorithmic Username & Pattern Scoring β Analyzes username entropy to detect machine-generated bot accounts (e.g. random consonant strings, suspicious character distributions, and algorithmic digit sequences).
- Disposable & Temporary Email Defense β Blocks registrations from known temporary inbox providers, throwaway domains, and malformed email patterns.
- Registration Rate Limiting & Dynamic IP Firewall β Imposes strict request thresholds per IP address. Bursts of rapid registration attempts are automatically throttled and blocked before server resources are consumed.
- Brute-Force Login & Credential-Stuffing Protection β Monitors and mitigates aggressive login probes and dictionary attacks across
wp-login.phpand registration endpoints. - Retrospective Spam Account Scanner β Deep-scans your existing user database to identify dormant, unverified, or bot-generated accounts registered before plugin activation.
- Registration Burst Cohort Review β Identifies coordinated mass-registration attack waves across specific calendar windows. Allows administrators to inspect suspicious cohorts with granular activity metrics before taking action.
- Administrator Shield & Role Safelisting β Hardcoded immunity for Administrator and Editor roles, plus a flexible custom safelist to guarantee zero accidental deletions of trusted staff, students, or clients.
- Interactive Quick Setup Guide β Step-by-step onboarding tracker directly on the Overview dashboard to arm registration defense, rate limiting, and firewall shields in seconds.
- ManageWP & Remote Maintenance Compatibility β Cryptographically verifies signed master requests from remote management tools (such as ManageWP Worker) so automated backups and updates are never falsely rate-limited or blocked.
- 100% Privacy-First & GDPR Compliant β All security evaluations and detection heuristics run entirely on your local server. Zero external API calls, zero visitor tracking, and built-in integration with WordPress Personal Data Exporter & Eraser tools.
- Academic Research Citation β Based on published research: βAlgorithmic Mitigation of Asymmetric Bot Registration Attacks and Credential Stuffing in High-Concurrency CMS Ecosystemsβ (Light & Composition University Academic Journal, Vol. 14, Issue 3, Pages 65β96).
Written by Joobi from the project's own listing. See the source page
1.4.23 (November 29, 2026) β Hotfix: Cloudflare IPv6 & Proxy CIDR Resolution and Zero-Write Public GET Firewall
- IPV6 & REVERSE-PROXY CIDR SUPPORT (
includes/class-firewall.php): UpgradedLCASR_Firewall::ip_in_range()to binaryinet_pton()IPv4 + IPv6 CIDR matching and expandedis_trusted_proxy()to include official Cloudflare IPv6 CIDRs, RFC1918/ULA internal reverse-proxy ranges, andSERVER_ADDR, preventing IPv6/proxied visitors from collapsing onto one shared proxy IP and triggering mass HTTP 429 retry storms. - MYSQL
wp_optionsLOCK ELIMINATION (includes/class-firewall.php): Addedshould_track_rate_limit()so ordinary publicGET/HEADpageviews skipwp_optionstransient rate-limit writes when no external object cache is active, while keeping IP blocking active on all requests and rate limiting active onPOST,wp-login.php,xmlrpc.php, REST, and AJAX endpoints (and all requests when Redis/object cache is active).
1.4.22 (November 29, 2026) β Security Hardening: Proxy Header Verification, ManageWP & Timer Token Enforcement
- TRUSTED PROXY IP VERIFICATION (
includes/class-firewall.php): RestrictedHTTP_CF_CONNECTING_IPandHTTP_X_FORWARDED_FORinspection inLCASR_Firewall::get_client_ip()strictly to connections whose directREMOTE_ADDRmatches an explicitly trusted proxy/Cloudflare CIDR (lcasr_trusted_proxies), and scoped loopback exemption incheck_request()strictly to genuine localREMOTE_ADDRrequests. - MANAGEWP HEADER SPOOFING FIX (
lc-anti-spam-registration.php): Removed the unverifiedHTTP_MWP_ACTION/HTTP_MWP_SIGNATUREheader firewall exemption (ManageWP IPs can be allowlisted cleanly vialcasr_trusted_ips). - ANTI-BOT TIMER TOKEN ENFORCEMENT (
includes/class-spam-detector.php): Required a valid non-empty HMAClcasr_form_tokenwheneverregistration_start_timeis evaluated so omittinglcasr_form_tokenfails velocity verification cleanly.
1.4.21 (October 1, 2026)
- LOOPBACK & TRUSTED IP RATE-LIMIT EXEMPTION β Automatically exempted IPv4 and IPv6 loopback addresses (
127.0.0.1,::1) and configured trusted IPs (lcasr_trusted_ips) from the rate-limiting firewall incheck_request(), completely preventing local developer and staging traffic from triggering false-positive HTTP 429 Too Many Requests errors.
1.4.20 (September 18, 2026)
- AUTHENTICATED MEMBER RATE-LIMIT EXEMPTION β Exempted
is_user_logged_in()fromcheck_request(), ensuring logged-in subscribers, customers, students, and community members browsing tabs or using real-time features (chat lounges, presence heartbeats) are never throttled or blocked. - RATE LIMITING THROTTLE VS PUNITIVE 24-HOUR BLACKLIST β Eliminated permanent 24-hour IP blacklisting (
$this->block_ip()) from request rate limiting. Breaches now return a clean, temporary HTTP 429 status withRetry-After: 60andnocache_headers(), allowing visitors to resume access automatically once requests subside without administrative intervention. Permanent 24-hour IP blocks are strictly reserved for brute-force login attacks and manual admin bans. - CLOUDFLARE & REVERSE PROXY IP RESOLUTION β Upgraded
get_client_ip()to inspectHTTP_CF_CONNECTING_IPandHTTP_X_FORWARDED_FOR, preventing visitors behind Cloudflare or reverse proxies from sharing edge IPs and triggering shared false-positive blocks. - REAL-TIME POLLING & HEARTBEAT SAFEGUARDS β Automatically exempted WordPress AJAX heartbeats (
action === 'heartbeat') and background CLI/cron jobs, and raised default request threshold to 120 requests per 5-minute window for unauthenticated traffic.
1.4.19 (September 14, 2026)
- FLAGGED USER EMAIL VISIBILITY & FORENSIC REVIEW β Enhanced the Flagged Accounts review table to ensure administrators can always see and verify user emails before deciding to delete or safelist accounts.
- EXPLICIT βEMAIL MISSINGβ STATUS BADGE β Added a high-contrast warning badge (
Email missing) when accounts have no registered email address in WordPress or metadata (e.g. legacy social/Facebook registrations without email scopes), eliminating confusing blank table cells. - WOOCOMMERCE BILLING EMAIL FALLBACK β Added automatic fallback resolution from
billing_emailin usermeta with a dedicatedbillingsource badge, preventing legitimate store customers from being mischaracterized as email-less accounts. - CLICKABLE EMAIL & USER PROFILE INSPECTION β Formatted valid emails with clickable
mailto:links with dashicons and made user display names clickable directly to/wp-admin/user-edit.phpfor instant forensic inspection. - SENSEI LMS STUDENT & SOCIAL LOGIN DETECTION β Integrated account origin and LMS enrollment tracking (
Enrolled (N courses),Social Login) directly into the review tags, protecting active students and social login members from accidental deletion. - RETROSPECTIVE SCAN STUDENT IMMUNITY β Hardened
check_existing_user()to exempt active Sensei LMS students and use effective billing emails during scans, eliminating false-positive flags on legitimate members.
1.4.18 (September 14, 2026)
- USER CACHE PRIMING COMPATIBILITY β Implemented canonical
lcasr_prime_user_caches()cache priming helper, safely delegating to core_prime_user_caches()or falling back tocache_users()andupdate_meta_cache(). Resolves unhandled fatal error on live WordPress sites during full user directory scans. - SCANNER MEMORY BOUNDING & CHUNK OPTIMIZATION β Replaced monolithic upfront cache priming in
scan_all_users()with bounded chunking (100 users per batch) and per-record runtime memory eviction viaclean_user_cache(), eliminating memory exhaustion crashes across high-capacity user directories. - AJAX SCAN ERROR HANDLING HARDENING β Wrapped
handle_manual_scan()andhandle_manual_cleanup()intry / catch (\Throwable)blocks to return structured JSON error payloads, preventing raw HTTP 500 crashes and providing actionable admin notifications.
1.4.17 (September 13, 2026)
- IP RATE LIMITING, BRUTE FORCE & DYNAMIC FIREWALL HARDENING (PIPELINE 3) β Completed end-to-end audit and hardening of the request rate limiter, brute-force login monitor, and dynamic IP firewall engine.
- CRITICAL BRUTE-FORCE SECURITY LOOPHOLE CLOSED β Closed critical security flaw in
handle_failed_login()where brute-force login attacks against administrator accounts were erroneously bypassed from failure counters. Untrusted IPs targeting administrator or regular accounts are now strictly tracked and blocked once the failure threshold is met. - SUCCESSFUL AUTHENTICATION RESET β Added
handle_successful_login()hook onwp_loginto immediately purge transient failed-login attempts upon valid password entry, eliminating false-positive lockouts from previous typographical errors. - IMMEDIATE 429 RESPONSES ON RATE-LIMIT FLOODS β Updated
check_request()to immediately halt execution with HTTP 429 Too Many Requests status when the rate limit is exceeded, preventing abusive traffic from consuming server CPU rendering time. - CRON & CLI EXECUTION SAFEGUARDS β Added execution safeguards to automatically exempt
wp_doing_cron()and WP-CLI (WP_CLI) from rate-limiting and blocking. - PUBLIC INSPECTION & UNBLOCK APIS β Converted
is_ip_blocked(),block_ip(), andget_client_ip()to public APIs; implementedunblock_ip()andget_blocked_ips()for administrative control and contract test verification. - DUAL HOOK EMISSION & EXEMPTION PARITY β Supported both
lcasr_firewall_request_exemptandsad_firewall_request_exempt, and emit bothlcasr_ip_blocked/sad_ip_blockedandlcasr_ip_unblocked/sad_ip_unblocked. - AUTOMATED SECURITY EMAIL NOTIFICATION β Added administrative email alert dispatch via
wp_mail()when optionlcasr_notify_admin_brute_forceis active and an attacker is blocked.
1.4.16 (September 13, 2026)
- ALGORITHMIC USERNAME ENTROPY & DISPOSABLE EMAIL DEFENSE (PIPELINE 2) β Completed full audit and hardening of the algorithmic username entropy and disposable inbox defense engines.
- SHANNON ENTROPY CALCULATION β Implemented
calculate_entropy()computing information entropy H(X) in bits per character to mathematically distinguish machine-generated pseudo-random identifiers from genuine human choices. - FALSE-POSITIVE HUMAN COMPOUND ELIMINATION β Fixed critical registration-blocking bug where legitimate human names and compound nouns (
christopher,alexsmith,blacksmith,manchester,birmingham,strathmore,williamson) were erroneously denied registration due to broad consonant cluster boundaries. Refined heuristics with natural English trigraph detection (chr,str,tch,cks,mth,nch,ngh, etc.) and tightened vowel scarcity thresholds. - DISPOSABLE EMAIL PROVIDER CATALOG & SUBDOMAIN MATCHING β Added
get_disposable_email_domains()providing a comprehensive 40+ provider catalog with filterlcasr_disposable_email_domainsand wildcard subdomain defense (*.mailinator.com, etc.). - PRE-REGISTRATION DISPOSABLE EMAIL INTERCEPTION β Added proactive blocking in
check_registration_limits()withlcasr_disposable_email_blockedaudit action trigger before user records touch the database. - SUSPICIOUS EMAIL STRUCTURE HEURISTICS β Hardened
is_suspicious_email_structure()with sub-addressing abuse detection (+temp...,+987654321) and high-risk TLD pattern heuristics with filterlcasr_is_suspicious_email_structure. - PCRE UNAMBIGUOUS CAPTURE GROUPS β Standardized regex backreferences to PCRE
\g{1}and\g{2}syntax across doubled-vowel detector routines to eliminate string escape ambiguities across PHP versions.
1.4.15 (September 13, 2026)
- REGISTRATION BOT TRAP & BEHAVIORAL TIMING HARDENING (PIPELINE 1) β Fully audited and hardened the registration bot trapping and submission velocity verification engine.
- CRYPTOGRAPHIC ANTI-TAMPERING TIMING TOKENS β Injected server-signed verification tokens (
wp_hash('lcasr_time_' . $start_time)) alongside registration timestamps to prevent malicious bots from forging past timestamps. - WOOCOMMERCE & MULTISITE PROTECTION PARITY β Extended honeypot injection and human velocity verification hooks to
woocommerce_register_form,woocommerce_process_registration_errors, andsignup_extra_fields. - ACCESSIBLE HONEYPOT MARKUP β Added hidden accessible
<label>markup and filterable honeypot field names (lcasr_honeypot_field_name) for zero screen reader impact and customizable obfuscation. - SCRAPER & HEADLESS BROWSER DETECTION β Expanded automated client blocking to intercept empty User-Agents and modern scraper frameworks (
scrapy,aiohttp,headlesschrome) with filterable pattern overrides (lcasr_bot_ua_regex). - THREAT AUDIT ACTION HOOKS β Added
lcasr_honeypot_triggered,lcasr_registration_timing_failed, andlcasr_bot_ua_blockedaction triggers for threat logging and Pro telemetry integration. - REGISTRATION QUOTA BOUNDING β Capped in-memory registration tracking arrays to 500 items max to guarantee zero database option table bloat under high concurrency.
- DUAL BOOTSTRAP COMPATIBILITY HOOKS β Attached both
lcasr_base_plugin_readyandsad_base_plugin_readyto guarantee instant synchronization with Pro add-ons and legacy integrations.
1.4.14 (September 13, 2026)
- WORDPRESS.ORG COMPLIANCE & PREFIX HARMONIZATION β Systematically refactored all class names, constants, functions, options, AJAX endpoints, and filter/action hooks to the approved 5-character plugin prefix
lcasr_/LCASR_, eliminating the generic 3-charactersad_prefix. - TESTED UP TO 7.1 β Verified and validated compatibility against WordPress 7.1 core standards.
- ASSET & NAMESPACE CONSOLIDATION β Renamed core component classes to
LCASR_Spam_Detector,LCASR_Spam_Cleaner,LCASR_Firewall,LCASR_Privacy,LCASR_Dashboard_Widget, andLCASR_Admin_Interface. - AJAX & SCRIPT STANDARDIZATION β Updated admin AJAX handlers and localized script object to
lcasrAjaxwithlcasr_admin_nonce. - UPGRADE MIGRATION β Added seamless backward-compatible options migration for existing installations upgrading from previous releases.
1.4.13 (September 8, 2026)
- SAFELIST RETRIEVAL QUERY OPTIMIZATION β Added user cache priming (
_prime_user_caches()) inget_safelist(), eliminating N+1 database queries when loading safelisted accounts in the admin console. - FLAGGED ACCOUNTS METADATA BATCH PRIMING β Integrated
update_meta_cache('user', $page_ids)across paginated slices inget_flagged_accounts(), fetching spam scores, reasons, and marked dates in a single bulk query rather than 60 separate queries per page. - SAFELIST AUDIT NOTIFICATION HOOKS β Added
lcasr_user_safelistedandlcasr_user_removed_from_safelistalongside legacysad_*action hooks for audit trails and activity feeds. - DASHBOARD WIDGET CAPABILITY HARDENING β Restricted widget registration, stylesheet enqueueing, and content rendering strictly to administrators with
manage_optionscapability. - PATH STANDARDIZATION & DOUBLE-SLASH PREVENTION β Standardized asset URLs and filesystem paths to modern
LCASR_PLUGIN_DIR/LCASR_PLUGIN_URLwithrtrim(), eliminating malformed double-slash asset links. - QUICK SETUP AJAX FAILURE RECOVERY β Added
.fail()network error recovery handlers to the interactive Quick Setup checklist toggles, preventing controls from getting trapped in busy state during server disruptions.
1.4.12 (September 8, 2026)
- AUTOMATED CLEANUP EXECUTION SAFEGUARDS β Added
@set_time_limit(120)andwp_raise_memory_limit('admin')tocleanup_spam_accounts(), preventing script timeouts and memory exhaustion during automated background cron cleanups on large candidate pools. - DUAL STATS TRANSIENT INVALIDATION β Synchronized cache purging to clear both
lcasr_cleanup_statsand legacysad_cleanup_statson single deletions, batch purges, and manual scans. - ACCOUNT DELETION ACTION HOOKS β Added
lcasr_spam_user_deletedandsad_spam_user_deletednotification actions to allow audit loggers and Pro add-on hooks to record user removals. - DUAL CAN-DELETE & ROLE FILTERS β Added modern
lcasr_can_delete_userandlcasr_protected_rolesfilter bridges alongside legacysad_*hooks in the cleanup candidate pipeline. - SCHEDULED CLEANUP HOOK PARITY β Attached scheduled cleanup handler to both
lcasr_cleanup_spam_accountsand legacysad_cleanup_spam_accounts.
1.4.11 (September 8, 2026)
- EMAIL LOGIN BRUTE-FORCE LOCKOUT PREVENTION β Enhanced
handle_failed_login()withis_email()check and email-based user resolution, preventing false-positive IP bans when administrators or staff log in using their email address. - SAFELIST LOGIN IMMUNITY β Extended failed login protection to bypass rate-limiting and blocking for users explicitly included in the administrator safelist.
- FIREWALL EXEMPTION FILTER PARITY β Upgraded
check_request()to evaluate both modernlcasr_firewall_request_exemptand legacysad_firewall_request_exemptfilter hooks. - IP BLOCKING NOTIFICATION HOOKS β Added
lcasr_ip_blockedandsad_ip_blockedaction triggers upon dynamic IP blocks for integration with live threat analytics. - LOCAL IP FIREWALL BYPASS β Guarded firewall rate-limiting and failed-login transient generation against placeholder
0.0.0.0addresses, preventing transient bloat and false blocks during local development and CLI testing. - STALE BLOCK PRUNING CONSISTENCY β Fixed timestamp evaluation in
block_ip()to prune legacy entries without timestamps, maintaining full parity withis_ip_blocked().
1.4.10 (September 8, 2026)
- HONEYPOT ACCESSIBILITY & OBFUSCATION β Enhanced honeypot markup with
aria-hidden="true"and multi-technique CSS concealment (position: absolute; left: -9999px; opacity: 0; width: 0; height: 0;), thwarting smart bot evasion while protecting assistive screen readers. - TYPE SAFETY & PROTECTED ROLE DEFENSE β Hardened
check_login_attempt()withWP_Userinstance verification andis_protected_user()checks, preventing PHP runtime errors from third-party auth plugins and guaranteeing administrator/editor immunity. - DUAL ACTION HOOK PARITY β Added
lcasr_spam_detectedandlcasr_suspicious_loginaction hooks alongside legacysad_*equivalents for complete forward compatibility across modern extensions. - EXTENSIBLE COHORT & REGISTRATION FILTERS β Added modern
lcasr_*filters for avatar detection, profile content completeness, member activity metrics, and registration rate limits with legacy fallback. - OPTIONS AUTOLOAD & LATENCY RESOLUTION β Explicitly configured
autoload = falsefor large option stores (sad_registration_records,sad_spam_detection_log,sad_spam_training_data), eliminating massive database array bloat from the globalalloptionscache and reducing frontend page latency. - LOCAL IP THROTTLING GUARD β Added placeholder
0.0.0.0exclusion in registration rate limiting to prevent false-positive throttling on CLI environments. - LEGACY USERMETA PARITY β Synchronized
sad_markeddatealong
Follow this listing's changes (Atom feed)