Skip to content
PublishPress
  • PluginsExpand
    • Authors
    • Blocks
    • Capabilities
    • Checklists
    • Future
    • Permissions
    • Planner
    • Revisions
    • Series
    • Statuses
  • Docs
  • Support
  • Testimonials
  • Blog
  • Login
Buy Now
PublishPress

Use hCaptcha for WordPress to Block Bots on the Login Page

BySteve Burge October 5, 2022January 15, 2024

Spambots and other automated scripts constantly probe the internet looking for weaknesses in WordPress websites. hCaptcha for WordPress is designed to identify these bots and prevent them from accessing your site.

In this post you'll learn all about hCaptcha for WordPress and see how it fits into the overall strategy for securing the login area on your website.

Table of Contents

  • What is a Turning Test, CAPTCHA and hCaptcha?
    • The Turing test
    • CAPTCHA
    • hCaptcha
  • hCaptcha for WordPress
    • Obtaining the hCaptcha keys
    • Installing the plugin
    • Configuring the plugin
  • Using the hCaptcha for WordPress plugin

What is a Turning Test, CAPTCHA and hCaptcha?

Before we begin, let's define a few things.

The Turing test

The Turing test was first proposed by English mathematician and computer scientist Alan Turing in 1950 to determine if machines could think. In this test, a human evaluator judges whether answers to natural-language questions are from a human or a machine.

CAPTCHA

CAPTCHA is an acronym for Completely Automated Public Turing test to tell Computers and Humans Apart. A typical CAPTCHA is a distorted image of a word. Correctly deciphering the word is the challenge for the user.

In this case, a computer administers the CAPTCHA to a human. This is called a reverse Turing test.

reCAPTCHA is a popular CAPTCHA implementation where challenge words originally came from digitized books. Assembling the solved challenges helped digitize books until it was

Google acquired reCAPTCHA in 2009 and repurposed it to identify images.

hCaptcha

Developed in 2017, hCaptcha is a privacy-focused alternative to reCAPTCHA. Like its predecessors, hCaptcha protects websites from spambots and other automated tools.

In this case, the Turing test requires site visitors to read a phrase and select specific images from a set of similar imagines. For example, the test may begin with a gallery of nine images of random vehicles. A successful Turing test would require the user to select only the trains from the other vehicles.

Notably, websites that use hCaptcha can earn revenue online by solving CAPTCHAs.

hCaptcha for WordPress

hCaptcha for WordPress
The hCaptcha for WordPress plugin

hCaptcha for WordPress is a free plugin that has been available on the WordPress repository since 2019. Once installed and configured, the plugin will present the hCaptcha Turing test on the the WordPress login page.

Obtaining the hCaptcha keys

Before proceeding, be sure you have created a free hCaptcha account and logged into the hCaptcha website. Once logged in:

  1. Click the Sites link in the top menu then click the New Site button.
  2. Add a Name and Domain for the site. The remaining defaults should be fine as shown below.
  3. Click the Save button to complete the site addition and return to the Sites area where your new site should be listed.
  4. Click the Settings button for the new site. Copy the Sitekey for use below.
  5. At the top-right, click your profile icon and then click Settings. Copy the Secret key for use below.
hCaptcha settings

Default settings for a new site in hCaptcha.

Installing the plugin

To install the plugin:

  1. Login to your WordPress backend using an account with administrator privileges.
  2. One the left sidebar choose Plugins > Add new.
  3. Search the available plugins for hCaptcha for WordPress.
  4. Once located in the search results, click the Install and then the Activate buttons.

Configuring the plugin

To configure the plugin:

  1. One the left sidebar choose Settings > hCaptcha.
  2. Enter the Sitekey and Secret key you saved from the hCaptcha website (above).
  3. Select Enable hCaptcha on Login Form.
  4. Scroll to the bottom and click the Save button.

Using the hCaptcha for WordPress plugin

If everything is set up correctly, you should now see the hCaptcha challenge similar to that shown below. Clicking the I am human select box triggers the Turing test.

If you are getting a lot of failed login attempts or a lot of traffic on your login page, consider using the hCaptcha plugin. Be sure to warn any administrators of the change as some legitimate users may be surprised and confused by the extra login steps required.

hCaptcha WordPress login
WordPress login showing the hCaptcha challenge.
  • Steve Burge

    Steve is the founder of PublishPress. He's been working with open source software for over 20 years. Originally from the UK, he now lives in Sarasota in the USA. This profile is generated by the PublishPress Authors plugin.

Get the PublishPress plugins

Powerful publishing and permissions plugins for WordPress.

PublishPress Get PublishPress plugins

PublishPress news

  • Make Your WordPress Admin Areas Colorful and Unique February 18, 2026
  • Introducing the New PublishPress Shortlinks Plugin February 16, 2026
  • Choose Default and Locked Post Statuses in WordPress February 12, 2026
  • Introducing PublishPress Hub January 26, 2026
  • How to Schedule a Term Change in WordPress January 8, 2026

Testimonials

This plugin meets the needs of my project very well. Providing editorial comments for submitted assessments, and a notification system to send emails to both the author and any assigned roles (or individuals) upon content being submitted for approval. This is extended by the easy to use status system, that integrates well into WordPress core, allowing us to create custom statuses and notifications for each. I ran into an issue with notifications not sending to roles and contacted the dev. Their support was amazing! They sent me a working fix for the issue within 12 hours of contacting them!

rikkx

I’m not sure I could use WordPress in my current company without this plugin. Its great

josheprovoedu

Recent posts

  • Make Your WordPress Admin Areas Colorful and Unique February 18, 2026
  • Introducing the New PublishPress Shortlinks Plugin February 16, 2026
  • Choose Default and Locked Post Statuses in WordPress February 12, 2026
  • Introducing PublishPress Hub January 26, 2026
  • How to Schedule a Term Change in WordPress January 8, 2026

Testimonials

This plug-in is a fabulous tool and provides excellent workflow management.

Scott Freeze

I’m not sure I could use WordPress in my current company without this plugin. Its great

josheprovoedu

Important Links

  • The PublishPress Podcast
  • Join our Affiliate Program
  • About the PublishPress Team
  • Frequently Asked Questions
  • Terms and Conditions
  • Refund Policy
  • Logo and Brand Materials
  • Famous PublishPress users

Our Projects

  • MetaSlider
  • TaxoPress
  • Logtivity

© 2026 PublishPress

Facebook Group Github Apple Podcasts Spotify YouTube
Scroll to top
  • Plugins
    • Authors
    • Blocks
    • Capabilities
    • Checklists
    • Future
    • Permissions
    • Planner
    • Revisions
    • Series
    • Statuses
  • Docs
  • Support
  • Testimonials
  • Blog
  • Login
Search