hCaptcha for WP
by hCaptcha 4.6 (80 reviews)

hCaptcha for WP

The strongest CAPTCHA. Switch from reCAPTCHA, Turnstile, etc. for free. Integrates with 60+ popular plugins and themes.

Compatible with WP 6.9
v4.22.0 Current Version v4.22.0
Updated 2 days ago Last Update on 18 Jan, 2026
Synced 8 hours ago Last Synced on
Rank
#608
No change
Active Installs
70K+
-8.1%
KW Avg Position
10.2
No change
Downloads
1.8M
+1,946 today
Support Resolved
82%
No change
Rating
92%
Review 4.6 out of 5
4.6 (80 reviews)

Next Milestone 80K

Total Progress 65.4%
70K+ 80K+
18
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 3,462 more installs to reach 80K+

Rank Changes

578 594 610 626 642 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026
578 594 611 628 644 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026
603 609 614 620 625 22-12-2025 23-12-2025 24-12-2025 25-12-2025 26-12-2025 27-12-2025 28-12-2025 29-12-2025 30-12-2025 31-12-2025 01-01-2026 02-01-2026 03-01-2026 04-01-2026 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026
603 609 614 620 625 23-10-2025 24-10-2025 25-10-2025 26-10-2025 27-10-2025 28-10-2025 29-10-2025 30-10-2025 31-10-2025 01-11-2025 02-11-2025 03-11-2025 04-11-2025 05-11-2025 06-11-2025 07-11-2025 08-11-2025 09-11-2025 10-11-2025 11-11-2025 12-11-2025 13-11-2025 14-11-2025 15-11-2025 16-11-2025 17-11-2025 18-11-2025 19-11-2025 20-11-2025 21-11-2025 22-11-2025 23-11-2025 24-11-2025 25-11-2025 26-11-2025 27-11-2025 28-11-2025 29-11-2025 30-11-2025 01-12-2025 02-12-2025 03-12-2025 04-12-2025 05-12-2025 06-12-2025 07-12-2025 08-12-2025 09-12-2025 10-12-2025 11-12-2025 12-12-2025 13-12-2025 14-12-2025 15-12-2025 16-12-2025 17-12-2025 18-12-2025 19-12-2025 20-12-2025 21-12-2025 22-12-2025 23-12-2025 24-12-2025 25-12-2025 26-12-2025 27-12-2025 28-12-2025 29-12-2025 30-12-2025 31-12-2025 01-01-2026 02-01-2026 03-01-2026 04-01-2026 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026
Current #608
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 5K 10K 15K 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026
0 5K 10K 15K 20K 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026
0 5K 10K 15K 20K 22-12-2025 23-12-2025 24-12-2025 25-12-2025 26-12-2025 27-12-2025 28-12-2025 29-12-2025 30-12-2025 31-12-2025 01-01-2026 02-01-2026 03-01-2026 04-01-2026 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026 21-01-2026
0 5K 10K 15K 20K 23-10-2025 26-10-2025 29-10-2025 01-11-2025 04-11-2025 07-11-2025 10-11-2025 13-11-2025 16-11-2025 19-11-2025 22-11-2025 25-11-2025 28-11-2025 01-12-2025 04-12-2025 07-12-2025 10-12-2025 13-12-2025 16-12-2025 19-12-2025 22-12-2025 25-12-2025 28-12-2025 31-12-2025 03-01-2026 06-01-2026 09-01-2026 12-01-2026 15-01-2026 18-01-2026 21-01-2026
0 5K 10K 15K 20K 21-01-2025 02-02-2025 14-02-2025 26-02-2025 10-03-2025 22-03-2025 03-04-2025 15-04-2025 27-04-2025 09-05-2025 21-05-2025 02-06-2025 14-06-2025 26-06-2025 08-07-2025 20-07-2025 01-08-2025 13-08-2025 25-08-2025 06-09-2025 18-09-2025 30-09-2025 12-10-2025 24-10-2025 05-11-2025 17-11-2025 29-11-2025 11-12-2025 23-12-2025 04-01-2026 16-01-2026 21-01-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

4.6
80 reviews
Overall 92%
5
68 (85%)
4
3 (4%)
3
1 (1%)
2
2 (3%)
1
6 (8%)

Tracked Keywords

Showing 5 of 5
Keyword Position Change Type Updated
hcaptcha 2 Tag 10 hours ago
abuse 4 Tag 10 hours ago
antispam 5 Tag 10 hours ago
captcha 15 Tag 10 hours ago
protect 25 Tag 10 hours ago

Unlock Keyword Analytics

Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.

  • Full keyword position tracking
  • Historical ranking data
  • Competitor keyword analysis
Upgrade to Pro

Support Threads Overview

Resolved
Unresolved
11
Total Threads
9
Resolved
2
Unresolved
82%
Resolution Rate

Track This Plugin

Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.

Start Tracking Free

Plugin Details

Version
4.22.0
Last Updated
Jan 18, 2026
Requires WP
6.0+
Tested Up To
6.9
PHP Version
7.4 or higher
Author
hCaptcha

Support & Rating

Rating
★ ★ ★ ★ ★ 4.6
Reviews
80
Support Threads
11
Resolved
82%

Keywords

Upgrade to Pro

Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.

Upgrade Now

Frequently Asked Questions

Common questions about hCaptcha for WP

For non-standard cases, you can use the [hcaptcha] shortcode provided by the plugin.

For example, we support Contact Forms 7 automatically. However, sometimes a theme can modify the form. In this case, you can manually add the [cf7-hcaptcha] shortcode to the CF7 form.

To make hCaptcha work, the shortcode must be inside the

...

tag.
How do I use the new AI / Abilities features?
hCaptcha exposes selected security actions via the WordPress Abilities API for use with automation tools, WP-CLI, and AI agents, making it suitable for agencies managing multiple WordPress sites. Requires WordPress 6.9 or newer.

The typical workflow consists of two steps: inspect threats and block offenders.

** 1. Inspect recent threat activity **

You can request an aggregated threat snapshot for a given time window.

Using WP-CLI:

wp ability run hcaptcha/get-threat-snapshot --input='{"window":"55d"}' --user=admin

Using REST API (authenticated):

curl --globoff -u "USER:APP_PASSWORD" \
"https://example.com/wp-json/wp-abilities/v1/abilities/hcaptcha/get-threat-snapshot/run?input[window]=55d"

The response includes:
* overall metrics (total requests, failure rate)
* dominant attack signals
* breakdown by error type and form source
* a list of top offenders (if present)

Example (simplified):

{
"metrics": { "total": 353, "failed": 215 },
"signals": { "attack_likelihood": "high" },
"breakdown": {
"errors": { "empty": 160, "spam": 16 },
"offenders": [
{
"offender_id": "a1376a016c4156933c4d49b0bc56fa01",
"type": "ip",
"count": 2
}
]
}
}

** 2. Block abusive offenders **

If an offender appears suspicious, you can block it using its offender_id.

Using WP-CLI:

wp ability run hcaptcha/block-offenders \
--input='{"offender_ids":["a1376a016c4156933c4d49b0bc56fa01"]}' \
--user=admin

Using REST API (authenticated):

curl --globoff -u "USER:APP_PASSWORD" \
"https://example.com/wp-json/wp-abilities/v1/abilities/hcaptcha/block-offenders/run?input[offender_ids][]=a1376a016c4156933c4d49b0bc56fa01"

Example response:

{
"blocked": ["a1376a016c4156933c4d49b0bc56fa01"],
"effective_until": "2026-01-01T22:22:09Z"
}

** What is offender_id? **

offender_id is a stable hash of the IP address.

Raw IP addresses are never exposed to automation clients or AI agents.

This allows privacy-safe analysis and blocking, while still enabling deterministic enforcement.

** Can AI agents use this automatically? **

Yes.
You can point an AI agent to a WordPress site with Abilities enabled and instruct it to:
* discover available abilities
* collect threat statistics
* decide whether activity looks abusive
* block the most active offenders

Internally, the agent performs the same commands shown above (wp ability list, get-threat-snapshot, block-offenders).
You don't support plugin X. How can I get support for it added?
Open a PR on GitHub: or just email the authors of plugin X. Adding hCaptcha support is typically quite a quick task for most plugins.
Does the [hcaptcha] shortcode have arguments?
Full list of arguments:

[hcaptcha action="my_hcap_action" name="my_hcap_name" auto="true|false" ajax="true|false" force="true|false" theme="light|dark|auto" size="normal|compact|invisible"]

The shortcode adds not only the hCaptcha div to the form but also a nonce field. You can set your own nonce action and name. For this, use arguments in the shortcode:

[hcaptcha action="my_hcap_action" name="my_hcap_name"]

and in the verification:

$result = \HCaptcha\Helpers\API::verify_post( 'my_hcap_name', 'my_hcap_action' );

For the explanation of the auto="true|false" argument, see the section "How to automatically verify an arbitrary form". By default, auto="false".

The argument force="true|false" allows forcing verification of hCaptcha widget before submitting the form. By default, force="false".

The argument size="normal|compact|invisible" allows setting the size of hCaptcha widget. By default, size="normal".
How to add hCaptcha to an arbitrary form
First, add the hCaptcha snippet to the form.

If you create the form as an HTML block in the post content, insert the shortcode [hcaptcha] inside it. It may look like this:

<form method="post">
<input type="text" name="test_input">
<input type="submit" value="Send">
[hcaptcha]
</form>

If you create the form programmatically, insert the following statement inside it:

?>
<form method="post">
<input type="text" name="test_input">
<input type="submit" value="Send">
<?php echo do_shortcode( '[hcaptcha]' ); ?>
</form>
<?php

Secondly, verify the result of hCaptcha challenge.

$result = \HCaptcha\Helpers\API::verify_request();

if ( null !== $result ) {
echo esc_html( $result );
// Block processing of the form.
}
[hcaptcha auto="true"]

and insert this shortcode into your form.

Auto-verification works with forms sent by POST on frontend only. It works with forms in the post content and in widgets.

You can add also force="true" or force="1" argument to prevent sending a form without checking the hCaptcha.

[hcaptcha auto="true" force="true"]

Arbitrary forms can also be verified in ajax via the ajax argument. There is no need to specify auto="true" in this case, as ajax implies auto="true".

[hcaptcha ajax="true"]

How to block hCaptcha entirely on a specific page?
hCaptcha starts early, so you cannot use standard WP functions to determine the page. For instance, to block it on my-account page, add the following code to your plugin's (or mu-plugin's) main file. This code won't work being added to a theme's functions.php file.

/**
* Filter hCaptcha activation flag.
*
* @param bool|mixed $activate The activate flag.
*
* @return bool
*/
function my_hcap_activate( $activate ): bool {
$status = (bool) $status;

$url = isset( $_SERVER['REQUEST_URI'] ) ?
filter_var( wp_unslash( $_SERVER['REQUEST_URI'] ), FILTER_SANITIZE_FULL_SPECIAL_CHARS ) :
'';

if ( '/my-account/' === $url ) {
return false;
}

return $activate;
}

add_filter( 'hcap_activate', 'my_hcap_activate' );
/**
* Block inline styles.
*
* @return void
*/
function hcap_block_inline_styles() {
if ( is_page( 'contact' ) ) {
return;
}

$hcaptcha = hcaptcha();

remove_action( 'wp_head', [ $hcaptcha, 'print_inline_styles' ] );
remove_filter( 'wp_resource_hints', [ $hcaptcha, 'prefetch_hcaptcha_dns' ] );
}

add_action( 'wp_head', 'hcap_block_inline_styles', 0 );

Skipping hCaptcha verification on a specific form
The plugin has a filter to skip adding and verifying hCaptcha on a specific form. The filter receives three parameters: current protection status ('true' by default), source and form_id.

The source is the plugin's slug (like 'directory/main-plugin-file.php'), the theme name (like 'Avada') or the WordPress core (like 'WordPress').

The form_id is the form_id for plugins like Gravity Forms or WPForms, the post id for comments, or a general name of the form when the form does not have an id (like WordPress core login form).

Filter arguments for some plugins/forms are listed below.

Affiliates
$source: 'affiliates/affiliates.php'
$form_id: 'login' or 'register'

Back In Stock Notifier
$source: 'back-in-stock-notifier-for-woocommerce/cwginstocknotifier.php'
$form_id: product_id

BBPress
$source: 'bbpress/bbpress.php'
$form_id: 'new_topic', 'reply', 'login', 'register' or 'lost_password'

Beaver Builder
$source: 'bb-plugin/fl-builder.php'
$form_id: 'contact' or 'login'

Blocksy
$source: 'blocksy'
$form_id: 'newsletter-subscribe', '$layer["__id"]', or 'product_id

Brizy
$source: 'brizy/brizy.php'
$form_id: 'form'

BuddyPress
$source: 'buddypress/bp-loader.php'
$form_id: 'create_group' or 'register'

Classified Listing
$source: 'classified-listing/classified-listing.php'
$form_id: 'contact', 'login', 'lost_password' or 'register'

Divi
$source: 'Divi'
$form_id: post_id for comment form, 'contact', 'email_optin', or 'login'
Easy Digital Downloads
$source: 'easy-digital-downloads/easy-digital-downloads.php'
$form_id: 'checkout', 'login', 'lost_password' or 'register'

Elementor Pro
$source: 'elementor-pro/elementor-pro.php'
$form_id: Form ID set for the form Content->Additional Options or 'login'

Events Manager
$source: 'events-manager/events-manager.php'
$form_id: event_id

Icegram Express
$source: 'email-subscribers/email-subscribers.php'
$form_id: form_id

Customer Reviews for WooCommerce
$source: 'customer-reviews-woocommerce/ivole.php'
$form_id: review or q&a

Jetpack
$source: 'jetpack/jetpack.php'
$form_id: 'contact_$form_hash'

Kadence Form
$source: 'kadence-blocks/kadence-blocks.php'
$form_id: post_id

Kadence Advanced Form
$source: 'kadence-blocks/kadence-blocks.php'
$form_id: form_id

LearnDash
$source: 'sfwd-lms/sfwd_lms.php'
$form_id: 'login', 'lost_password' or 'register'

LearnPress
$source: 'learnpress/learnpress.php'
$form_id: 'checkout', ''login', or 'register'

Login/Signup Popup
$source: 'easy-login-woocommerce/xoo-el-main.php'
$form_id: 'login', or 'register'

MemberPress
$source: 'memberpress/memberpress.php'
$form_id: 'login' or 'register'

Paid Memberships Pro
$source: 'paid-memberships-pro/paid-memberships-pro.php'
$form_id: 'checkout' or 'login'

Passster
$source: 'content-protector/content-protector.php'
$form_id: area_id

Password Protected
$source: 'password-protected/password-protected.php'
$form_id: 'protect'

Profile Builder
$source: 'profile-builder/index.php'
$form_id: 'login', 'lost_password' or 'register'

Simple Membership
$source: 'simple-membership/simple-wp-membership.php'
$form_id: 'login', 'lost_password' or 'register'

Subscriber
$source: 'subscriber/subscriber.php'
$form_id: 'form'

Support Candy
$source: 'supportcandy/supportcandy.php'
$form_id: 'form'

Theme My Login
$source: 'theme-my-login/theme-my-login.php'
$form_id: 'login', 'lost_password' or 'register'

Tutor LMS
$source: 'tutor/tutor.php'
$form_id: 'checkout', ''login', 'lost_password' or 'register'

Ultimate Addons
$source: 'ultimate-elementor/ultimate-elementor.php'
$form_id: 'login' or 'register'

Ultimate Member
$source: 'ultimate-member/ultimate-member.php'
$form_id: form_id or 'password'

UsersWP
$source: 'userswp/userswp.php'
$form_id: 'forgot', 'login' or 'register'

WooCommerce Germanized
$source: 'woocommerce-germanized/woocommerce-germanized.php'
$form_id: 'return_request'

WooCommerce Wishlist
$source: 'woocommerce-wishlists/woocommerce-wishlists.php'
$form_id: 'form'

wpDiscuz
$source: 'wpdiscuz/class.WpdiscuzCore.php'
$form_id: post_id

WPForms
$source: 'wpforms-lite/wpforms.php' or 'wpforms/wpforms.php'
$form_id: form_id

wpForo
$source: 'wpforo/wpforo.php'
$form_id: 'new_topic' for a new topic form and topicid for a reply form. Topicid can be found in HTML code searching for 'data-topicid' in Elements.

Wordfence Login Security
$source: 'wordfence-login-security/wordfence-login-security.php'
$form_id: 'login'

Wordfence Security
$source: 'wordfence/wordfence.php'
$form_id: 'login'

WordPress Core
$source: 'WordPress'
$form_id: post_id for comment form, 'login', 'lost_password', 'password_protected', or 'register'

WooCommerce
$source: 'woocommerce/woocommerce.php'
$form_id: 'checkout', 'login', 'lost_password', 'order_tracking', or 'register'

Below is an example of how to skip the hCaptcha widget on a Gravity Form with id = 1.

/**
* Filters the protection status of a form.
*
* @param string|mixed $value The protection status of a form.
* @param string[] $source Plugin(s) serving the form.
* @param int|string $form_id Form id.
*
* @return bool
*/
function hcap_protect_form_filter( $value, $source, $form_id ): bool {
$value = (bool) $value;

if ( ! in_array( 'gravityforms/gravityforms.php', $source, true ) ) {
// The form is not sourced by Gravity Forms plugin.
return $value;
}

if ( 1 !== (int) $form_id ) {
// The form has id !== 1.
return $value;
}

// Turn off protection for a Gravity form with id = 1.
return false;
}

add_filter( 'hcap_protect_form', 'hcap_protect_form_filter', 10, 3 );

How can I show the hCaptcha widget instantly?
The plugin loads the hCaptcha script with a delay until user interaction: mouseenter, click, scroll, or touch. This significantly improves Google Pagespeed Insights score.

To load the hCaptcha widget instantly, you can use the following filter:

/**
* Filters delay time for hCaptcha API script.
*
* Any negative value will prevent the API script from loading at all,
* until user interaction: mouseenter, click, scroll, or touch.
* This significantly improves Google Pagespeed Insights score.
*
* @param int|mixed $delay Number of milliseconds to delay hCaptcha API script.
* Any negative value means delay until user interaction.
*/
function my_hcap_delay_api( $delay ): int {
return 0;
}

add_filter( 'hcap_delay_api', 'my_hcap_delay_api' );

How to set hCaptcha language programmatically?
hCaptcha defaults to using the user's language as reported by the browser. However, on multilingual sites you can override this to set the hCaptcha language to match the current page language. For this, you can use the following filter:

/**
* Filters hCaptcha language.
*
* @param string|mixed $language Language.
*/
function my_hcap_language( $language ): string {
$language = (string) $language;

// Detect page language and return it.
$page_language = 'some lang'; // Detection depends on the multilingual plugin used.

return $page_language;
}

add_filter( 'hcap_language', 'my_hcap_language' );

How to denylist certain IPs
You can use the following filter. It should be added to your plugin's (or mu-plugin's) main file. This filter won't work being added to a theme's functions.php file.

/**
* Filter the user IP to check if it is denylisted.
* For denylisted IPs, any form submission fails.
*
* @param bool|mixed $denylisted Whether IP is denylisted.
* @param string $ip IP.
*
* @return bool
*/
function my_hcap_denylist_ip( $denylisted, $ip ): bool {
$denylisted = (bool) $denylisted;

// Denylist some IPs.
if ( '8.8.8.8' === $ip ) {
return true;
}

return $denylisted;
}

add_filter( 'hcap_blacklist_ip', 'my_hcap_denylist_ip', 10, 2 );

How to allowlist certain IPs
You can use the following filter. It should be added to your plugin's (or mu-plugin's) main file. This filter won't work being added to a theme's functions.php file.

/**
* Filter user IP to check if it is allowlisted.
* For allowlisted IPs, hCaptcha will not be shown.
*
* @param bool|mixed $allowlisted Whether IP is allowlisted.
* @param string $ip IP.
*
* @return bool
*/
function my_hcap_allowlist_ip( $allowlisted, $ip ): bool {
$allowlisted = (bool) $allowlisted;

// Allowlist local IPs.
if ( false === $ip ) {
return true;
}

// Allowlist some other IPs.
if ( '1.1.1.1' === $ip ) {
return true;
}

return $allowlisted;
}

add_filter( 'hcap_whitelist_ip', 'my_hcap_allowlist_ip', 10, 2 );
You can customize this by returning it to the previous location in the admin Settings section or tweaking its appearance.

To do this, use the following filter to your plugin's (or mu-plugin's) main file. This code won't work being added to a theme's functions.php file.

/**
* Filter the settings system initialization arguments.
*
* @param array|mixed $args Settings system initialization arguments.
*/
function hcap_settings_init_args_filter( $args ): array {
$args = (array) $args;

$args['mode'] = 'tabs';

return $args;
}

add_filter( 'hcap_settings_init_args', 'hcap_settings_init_args_filter' );

$args array has the following fields:

mode: 'pages' or 'tabs' (default 'pages') — the appearance of the admin menu;
parent: a string — the parent menu item. Default '' for 'pages' mode and 'options-general.php' for 'tabs' mode;
position: a number — the position of the menu item. Default 58.990225 for 'pages' mode. It Has no effect on 'tabs' mode;

Where do I report security bugs found in this plugin?
Please report security bugs found in the source code of the undefined plugin through the Patchstack Vulnerability Disclosure  Program. The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.
Where can I get more information about hCaptcha?
Please see our website.

Sign In / Register

You need to sign in or register to use this feature.