RMGCaptcha Math Guard – Math CAPTCHA for Login and WooCommerce

By Ridhwan Ahsan

★ 5.0/5 (1 ratings)80+ active installationsVersion 1.3.1

A lightweight math CAPTCHA and spam protection plugin for WordPress login, WooCommerce, and Contact Form 7 forms.

Description

RMGCaptcha Math Guard adds a GDPR-friendly, math-based CAPTCHA to protect WordPress login, WooCommerce, and Contact Form 7 forms from spam, fake registrations, and brute-force attacks. No external services, no tracking, and fully WordPress.org compliant.

Features:

  • WordPress login protection (captcha on wp-login.php)
  • Contact Form 7 integration via [pmcMathcaptcha] / [pmcMathcaptcha*]
  • WooCommerce login and registration protection
  • Lightweight spam protection without Google reCAPTCHA or third-party tracking
  • Configurable difficulty and operations (Addition/Subtraction/Multiplication/Random)
  • Hide captcha for logged-in users
  • Custom error message support
  • Optional rate limiting and honeypot
  • Failed login log + logged user list (admin pages)
  • Translation-ready

Installation

  1. Upload the rmgcaptcha-math-guard folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to Settings > RMGCaptcha Math Guard to configure.

FAQ

How do I add it to Contact Form 7?

Use the form tag [pmcMathcaptcha] or [pmcMathcaptcha*] in your CF7 form.

Does it work for logged-in users?

You can hide CAPTCHA for logged-in users via the settings page.

Does it keep logs?

Yes. It provides separate admin pages for Logged User List and Failed Login Log with a clear button for each list.

Changelog

1.3.1

  • Add Custom Admin Login URL settings with a configurable secret login slug
  • Return 404 for direct wp-login.php and unauthenticated wp-admin access
  • Keep failed-login messages and Math CAPTCHA on the custom login URL
  • Support WordPress installations in a subdirectory

1.3.0

  • Add Email 2FA (Two-Factor Authentication) for WordPress login
  • Add IP Blocker to manually block specific IP addresses from accessing the site
  • Add Country Block to restrict access by country
  • Add Login Alerts with email notifications on successful and failed logins
  • Add Temporary Login feature to generate time-limited, passwordless login links
  • Add rate limiting with configurable max attempts and block duration
  • Improve plugin stability and code quality across all modules

1.2.7

  • Add declare(strict_types=1) across all PHP files for stricter type safety
  • Add typed properties to all classes (PHP 7.4+ feature) for better static analysis
  • Add parameter type hints and return type declarations throughout the codebase
  • Fix extra closing markup bug on Help & Support admin page
  • Add file_exists safety check before loading Kenjo Insights SDK (prevents fatal errors if kci folder is missing)
  • Clean up rmgc_version option plus all KCI options and transients during plugin uninstall
  • Remove redundant instanceof check in log_login() (type hint guarantees WP_User)
  • Ensure consistent string casting for nonce, answer, and token values before validation

1.2.6

  • Fix admin “Save Settings” button missing styles (add .rmgc-save-btn CSS)
  • Add plugin header with branding and version badge to settings page
  • Fix public captcha CSS not loading on frontend and login page
  • Fix HTML class mismatch between captcha markup and stylesheet
  • Improve user avatar with indigo-purple gradient in log pages
  • Add rate limiting with configurable max attempts and block duration
  • Add honeypot spam protection field
  • Add failed login log and logged user list admin pages
  • Add Help & Support admin submenu page

1.2.5

  • Add Help & Support menu to admin panel
  • Add Support Development section with donation link
  • Improve admin interface with modern design

1.1.4

  • Complete UI redesign with modern gradient color scheme
  • Improve admin settings page with cleaner layout
  • Add modern toggle switches for settings
  • Enhance form inputs and select boxes design
  • Update logs page with better table design
  • Implement full-screen responsive design
  • Remove complex tab system for simpler user experience
  • Fix CSS loading issues by enqueuing stylesheets separately
  • Optimize spacing and padding throughout admin interface

1.1.3

  • Update “Tested up to” and resolve WordPress compatibility warning

1.1.2

  • Fix potential security issues and general code cleanup
  • Enhance compatibility with the latest WordPress version
  • Minor UI/UX improvements in admin settings
  • Improve plugin initialization stability

1.1.1

  • Add automatic version upgrade routine to safely merge settings for existing installs
  • Fix subtraction questions so answers stay user-friendly and validation remains consistent
  • Fix multiplication symbol rendering in generated math questions
  • Add a quick Settings link on the Plugins screen

1.0.1

  • Rename plugin to “RMGCaptcha Math Guard”
  • Add rmgc_ prefix across classes, functions, option and transient keys
  • Update text domain to rmgcaptcha-math-guard
  • Update admin menu titles and slugs
  • Replace translation template with languages/rmgcaptcha-math-guard.pot
  • Update readme metadata and wording
  • Keep existing nonces/CF7 tags for backward compatibility

1.0.0

  • Initial release.