LW IT Solutions logo LW IT Solutions logo LW IT Solutions
« Blog Overview /WordPress Plugins & Tricks / Securing WordPress Logins: Introducing WP Admin Captcha
Read this article in other languages:

Securing WordPress Logins: Introducing WP Admin Captcha

Securing WordPress Logins: Introducing WP Admin Captcha

Summary

WP Admin Captcha adds an extra challenge to the WordPress login form using Google reCAPTCHA. The aim is to make automated password attempts harder before access to website administration is granted. This is one part of login protection alongside strong credentials and additional identity checks. The article explains the plugin’s scope and limitations, including its dependence on Google. Correct setup and a recovery route matter because a broken check can also prevent legitimate administrators from signing in.

Contents
  1. Summary
  2. What the plugin checks
  3. Configuration and limits
  4. Checks before activation
  5. Questions and answers
  6. Sources

WP Admin Captcha adds Google reCAPTCHA v2 to the WordPress login form. The additional check can make automated password attempts harder. A captcha does not replace strong credentials, multifactor authentication, updates or login rate limits.

What the plugin checks

The Site Key is the public identifier for the browser widget. The Secret Key is the private key used by the server to verify the response. A token is the short-lived response value produced by the captcha interaction. In the reviewed version 1.0.0, the Site Key enables the widget on wp-login.php. A submitted captcha token is checked with the Secret Key through Google’s siteverify endpoint. The plugin reads the success field. A successful check allows authentication to continue; the account password must still be correct.

In the regular WordPress password flow, the wp_authenticate_user filter runs after account lookup and before password verification. Passing a captcha is not conclusive proof of a human visitor. Automation with a valid token remains possible.

Captcha token verification before the regular account password check; missing-secret and quota exceptions
The captcha check is part of authentication. The form remains accessible; missing-secret and quota behavior limit protection. # · WebP

Configuration and limits

  • Compatible keys: The integration expects reCAPTCHA v2 with a checkbox and matching Site and Secret keys. Domain restrictions and key type must fit the site. Migrated Classic keys are managed through Google Cloud; existing SiteVerify integrations can continue working.
  • Limited lockout protection: The code skips captcha verification when the Secret Key is missing. If only the Site Key is missing while the Secret Key remains, no widget appears but authentication still requires a token. Invalid keys can also prevent login.
  • An additional dependency: The widget loads external resources, and server verification requires a Google request. Extra latency and outages are possible. Hooks are points where WordPress allows plugin code to run. Using them does not guarantee unchanged performance.
  • Open source: The implementation is available in the GitHub repository. The installed version determines actual behavior.

Checks before activation

An independent management route through SSH or the hosting panel allows deactivation after a lockout. A test environment should cover successful login, missing tokens, invalid keys and an unreachable verification endpoint. The plugin treats an HTTP request failure as an error. Missing tokens are rejected locally, so not every bot request generates a Google request.

An assessment is a verification request, not necessarily a unique visitor. Google currently lists 10,000 free assessments per calendar month, shared across an organization’s accounts and sites. Quota handling requires special attention: the migration documentation describes SiteVerify returning success:true with an additional error message when over quota. The reviewed plugin checks only success and could accept that response. Quota exhaustion can therefore weaken protection rather than merely block logins. The separate CreateAssessment API has different behavior.

Questions and answers

What about XML-RPC and application passwords?

XML-RPC is an interface through which external software can call WordPress functions. Application passwords are separate credentials for supported external integrations. For regular account passwords, the filter can also reject XML-RPC authentication without a captcha token. WordPress application passwords use a separate verification path outside this plugin’s coverage. Other authentication plugins can change the flow. Required integrations need individual checks; unused access routes can be disabled.

Why is the widget missing despite a Site Key?

Possible causes include an incompatible key type, domain restrictions, blocked resources or a Content Security Policy (CSP). A CSP specifies which resource sources and connections the browser may allow. The browser console identifies blocked URLs and directives. Google’s current CSP guidance includes connect-src as well as script and frame sources; allowing only the two script hosts is not sufficient for every configuration.

Does the captcha prevent high server load?

No. Requests can still reach PHP and WordPress. An upstream rate limit caps requests before they reach WordPress and reduces load but does not automatically identify an incorrect WordPress login. Failure-based blocking needs suitable application or log signals. Shared IP addresses and distributed attacks limit rules based solely on IP addresses.

Lukas Wojcik

Lukas Wojcik

Systems architect and technology enthusiast specializing in scalable tracking solutions, GMP Stack (GA4 & GTM), and robust backend architectures. Advocate for clean code and privacy-first design.

Get in touch

A question or an idea for a web project? Tell me a little about it. This form uses reCAPTCHA and formconfirmed to protect against spam.

Write a comment

Experience with other plugins or hosting environments and questions about the setup are welcome here.

The email address is not published. Required fields are marked with an asterisk.

LUKASWOJCIK.COM · NEWSLETTER

Fresh ideas in your inbox

New articles, practical tools and updates from the projects.

Choose topics (optional)
No selection: all topics.

Subscription starts after confirmation by email. · Privacy

Privacy · Newsletter

Email address, language, selected topics and subscription/confirmation dates are stored to deliver the newsletter. Double opt-in is required. Every issue includes an immediate unsubscribe link. Formconfirmed checks the signup for spam. No email open or click tracking.

Read the full privacy policy ↗