hCaptcha for WordPress

Omschrijving

hCaptcha is a drop-in replacement for reCAPTCHA that pays website owners while preserving user privacy.

Do you use a captcha to keep out bots? hCaptcha protects user privacy, rewards websites, and helps companies get their data labeled. Help build a better web.

NOTE: This is a community-developed plugin. All integrations were submitted by developers who didn’t want to wait for a particular plugin to add native hCaptcha support.

If you see an integration that doesn’t work, or one that’s missing, please open a pull request:
https://github.com/hCaptcha/hcaptcha-wordpress-plugin

However, you may wish to email the authors of plugins you’d like to support hCaptcha: it will usually take them only an hour or two to add native support if they choose to do so. This will simplify your use of hCaptcha, and is the best solution in the long run.

How hCaptcha Works

The purpose of a CAPTCHA is to distinguish between people and machines via a challenge-response test, and thus increase the cost of spamming or otherwise abusing websites by keeping out bots.

hCaptcha takes this idea and extends it by attempting to use those challenge answers for annotation, in an attempt to avoid simply wasting that effort. It is designed to solve the most labor intensive problem in machine learning: labeling massive amounts of data in a timely, affordable, and reliable way.

More data generally produces better results in training machine learning models. The recent success of deep models has led to increasingly large datasets, almost always with some human review. However, creating large human-reviewed datasets via Mechanical Turk, Figure Eight, etc. is both slow and expensive.

hCaptcha allows websites to earn rewards while serving this demand while blocking bots and other forms of abuse when a user needs to prove their humanity.

Privacy Notices

With the default configuration, this plugin does not:

  • track users by stealth;
  • write any user personal data to the database;
  • send any data to external servers;
  • use cookies.

Once you activate this plugin, the hCaptcha-answering user’s personal data, including their IP address, may be sent to the hCaptcha service.

Please see the hCaptcha privacy policy at:

Forms and Plugins Supported

  • Ninja Forms Addon
  • Contact Form 7 Addon
  • Login Form
  • Register Form
  • Comment Form
  • Lost Password Form
  • WooCommerce Login Form
  • WooCommerce Registration Form
  • WooCommerce Lost Password Form
  • WooCommerce Checkout Form
  • WooCommerce Wishlists (see notes in wc_wl/wc-wl-create-list.php)
  • Buddypress Registration Form
  • BuddyPress Create Group Form
  • bbpress new topic Form
  • bbpress reply Form
  • WPForms Lite
  • WPForo new topic Form
  • WPForo Reply Form
  • Mailchimp for WP Form
  • Jetpack Contact Form
  • Subscribers Form

Please note

Some plugins listed have been superseded by native support, and are included only for legacy purposes.

You should always use native hCaptcha support if available for your plugin.
Please check with your plugin author if native support is not yet available.

Instructions for native integrations are below:

Installatie

  1. Upload hcaptcha-wp folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Enter your site key and SECRET in the Settings -> hCaptcha menu in WordPress
  4. Enable desired Integrations

FAQ

You don’t support plugin X. How can I get support for it added?

Open a PR on github: https://github.com/hCaptcha/hcaptcha-wordpress-plugin or just email the authors of plugin X. Adding hCaptcha support is typically quite a quick task for most plugins.

Where can I get more information about hCaptcha?

Please see our website at: https://hcaptcha.com/

Why isn’t my WPForms Lite install working?

Please make sure you have removed the reCAPTCHA keys under WPForms > Settings > reCAPTCHA to avoid a conflict.

How to block hcaptcha on 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 this code to your theme’s functions.php file:

/**
 * Filter hCaptcha activation flag.
 *
 * @param bool $activate Activate flag.
 *
 * @return bool
 */
function my_hcap_activate( $activate ) {
    $url = isset( $_SERVER['REQUEST_URI'] ) ?
        filter_var( wp_unslash( $_SERVER['REQUEST_URI'] ), FILTER_SANITIZE_STRING ) :
        '';

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

    return $activate;
}

add_filter( 'hcap_activate', 'my_hcap_activate' );

Beoordelingen

9 mei 2021
This plugin is excellent, it was the only one I found that works perfectly in the JetPack form. I recommend.
6 maart 2021
I had no problems setting this up with my Woocommerce site. Highly recommended. If I can one feature request; I would like to have hcaptcha show during Checkout, but only when a user isn't logged in. If a user has logged in, they've already passed a human check.
21 september 2020
Amazing plugin! Works really well and is much more privacy friendly then Google's Recaptcha. Keep up the good work 🙂
Lees alle 11 beoordelingen

Bijdragers & ontwikkelaars

“hCaptcha for WordPress” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

“hCaptcha for WordPress” is vertaald in 5 talen. Dank voor de vertalers voor hun bijdragen.

Vertaal “hCaptcha for WordPress” naar jouw taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

1.10.3

  • Fixed issue with Ninja Forms – hCaptcha is not shown.
  • Tested with WordPress 5.8 and WooCommerce 5.5

1.10.2

  • Fixed issue with CF7 – hCaptcha is not shown.

1.10.0

  • Fixed issue with WC login form when WP login form option is on.
  • Added feature to turn off the plugin for logged in users.
  • Added hook to disable the plugin on specific pages.
  • Added feature to run hcaptcha script and styles on pages where it is used only.

1.9.2

  • Fixed issue with WooCommerce on my-account page – captcha was requested even if solved properly.

1.9.1

  • Fixed issue with Contact Form 7 – reset hcaptcha widget when form is not validated.

1.9.0

  • Tested with WordPress 5.7 and WooCommerce 5.0

1.8.0

  • Added option to disable reCAPTCHA Compatibility (use if including both hCaptcha and reCAPTCHA on the same page)

1.7.0

  • 100% covered by WordPress integration tests.
  • Tests run on CI with PHP 5.6 – 8.0, latest WordPress core and latest related plugins.

1.6.4

  • Make any Jetpack contact form working with Block Editor
  • Tested with WooCommerce 4.7

1.6.3

  • Don’t require challenge for admin comment reply

1.6.2

  • WPForms Pro support

1.6.1

  • WPCS coding standards and docs update

1.6.0

  • Tested with WordPress 5.5 and WooCommerce 4.4

1.5.4

  • Added WPForms Lite support

1.5.3

  • WooCommerce Wishlists bug fix
  • text domain updated: better i18n support

1.5.2

  • CF7 bug fix: enforce validation

1.5.1

  • Update docs

1.5.0

  • Refactor to improve code hygiene, fixes for latest Ninja Forms.

1.4.2

  • Fixed comment issue, added WooCommerce Wishlists

1.4.1

  • Updated testing information, improve docs.

1.3

  • Automatic addition of hCaptcha button to Contact Form 7 forms when enabled.

1.2

  • Update to Contact Form 7 support. Adds compatibility for version 5.1.3.

1.1

  • Minor bugfixes

1.0

  • Plugin Created