Skip to content
PublishPress
  • PluginsExpand
    • Authors
    • Blocks
    • Capabilities
    • Cart
    • Checklists
    • Future
    • Permissions
    • Planner
    • Revisions
    • Series
    • Shortlinks
    • Statuses
    • Tag Groups
    • Taxonomies
  • 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 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

  • Control Your Admin Menus in the Free Version of PublishPress Capabilities October 29, 2026
  • PublishPress Series 3.1.5: Easier Search, Ordering, and Layout Controls October 26, 2026
  • PublishPress Checklists 2.30: Live Counts and Multi-Line Custom Tasks October 26, 2026
  • How the Livid.com Team Bounced Back from a Bending Spoons Acquisition October 26, 2026
  • PublishPress Authors 4.18: Accessibility Upgrades, Avatar Alt Text, and API Support October 26, 2026

Testimonials

A super powerful way to create a workflow where many authors write content and only a couple editors can publish approved content.

Justine Deyoung
Rated 5 out of 5 stars

I find PublishPress invaluable in scheduling our radio station content. PublishPress makes my life SO much easier!

Kevin Hilley
Rated 5 out of 5 stars

Recent posts

  • Control Your Admin Menus in the Free Version of PublishPress Capabilities October 29, 2026
  • PublishPress Series 3.1.5: Easier Search, Ordering, and Layout Controls October 26, 2026
  • PublishPress Checklists 2.30: Live Counts and Multi-Line Custom Tasks October 26, 2026
  • How the Livid.com Team Bounced Back from a Bending Spoons Acquisition October 26, 2026
  • PublishPress Authors 4.18: Accessibility Upgrades, Avatar Alt Text, and API Support October 26, 2026

Testimonials

When I need to look for a new plugin that would give me specific publishing tools as well as a solid editorial calendar, I landed on PublishPress. As someone who pushes out tons of content, yet doesn’t have a large team, it brings every aspect to the table that I need in order to keep my workflow running smoothly. Highly recommend, especially with the add-ons.

Bob Dunn
Rated 5 out of 5 stars

I find PublishPress invaluable in scheduling our radio station content. PublishPress makes my life SO much easier!

Kevin Hilley
Rated 5 out of 5 stars

Important Links

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

© 2026 PublishPress

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