hCaptcha for WordPress


hCaptcha is a drop-in replacement for reCAPTCHA that puts user privacy first.

Need to keep out bots? hCaptcha protects privacy while offering better protection against spam and abuse. Help build a better web.

Πώς λειτουργεί το hCaptcha

Ο σκοπός ενός CAPTCHA είναι να διακρίνει μεταξύ των ανθρώπων και των μηχανών μέσω μιας δοκιμής πρόκλησης-απάντησης, και έτσι να αυξήσει το κόστος spamming ή άλλης κατάχρησης των ιστότοπων κρατώντας έξω τα bots.

To use this plugin, just install it and enter your sitekey and secret in the Settings -> hCaptcha menu after signing up on hCaptcha.com.

hCaptcha Free lets websites earn rewards while blocking bots and other forms of abuse when a user needs to prove their humanity.

hCaptcha Pro goes beyond the free hCaptcha service with advanced machine learning to reduce the challenge rate, delivering high security and low friction along with more features like UI customization.

Ειδοποιήσεις προστασίας προσωπικών δεδομένων

hCaptcha is designed to comply with privacy laws in every country, including GDPR, LGPD, CCPA, and more.

Με την προεπιλεγμένη ρύθμιση παραμέτρων, αυτό το πρόσθετο δεν:

  • παρακολουθήσει χρήστες κρυφά
  • γράψει προσωπικά δεδομένα χρηστών στη βάση δεδομένων
  • αποστείλει δεδομένα σε εξωτερικούς διακομιστές
  • χρησιμοποιήσει cookies.

Once you activate this plugin, the hCaptcha-answering user’s IP address and browser data may be sent to the hCaptcha service on pages where you have activated hCaptcha protection. However, hCaptcha is designed to minimize data used, process it very close to the user, and rapidly discard it after analysis.

For more details, please see the hCaptcha privacy policy at:

Υποστηριζόμενες φόρμες και πρόσθετα

  • Φορμα Εισόδου
  • Φόρμα Εγραφής
  • Φόρμα χαμένου κωδικού πρόσβασης
  • Φόρμα σχολιασμού
  • Post/Page Password Form
  • ACF Extended Form
  • Asgaros Forum New Topic Form
  • Asgaros Forum Reply Form
  • Avada Form
  • Φόρμα νέου θέματος bbPress
  • Φόρμα απάντησης bbPress
  • Beaver Builder Contact Form
  • Beaver Builder Login Form
  • Φόρμα δημιουργίας ομάδας BuddyPress
  • Φόρμα εγγραφής Buddypress
  • Contact Form 7
  • Divi Contact Form
  • Divi Login Form
  • Download Manager Button
  • Elementor Pro Form
  • Fluent Forms
  • Forminator
  • GiveWP Form
  • Gravity Forms
  • Jetpack Forms
  • Kadence Form
  • Φόρμα Mailchimp for WP
  • MemberPress Login Form
  • MemberPress Register Form
  • Ninja Forms
  • Otter Blocks Forms
  • Quform Forms
  • Sendinblue Form
  • Φόρμα συνδρομητών
  • Support Candy New Ticket Form
  • Ultimate Member Login Form
  • Ultimate Member Lost Password Form
  • Ultimate Member Register Form
  • Φόρμα σύνδεσης WooCommerce
  • Φόρμα εγγραφής WooCommerce
  • Φόρμα χαμένου κωδικού πρόσβασης WooCommerce
  • Φόρμα ολοκλήρωσης αγοράς WooCommerce
  • WooCommerce Order Tracking Form
  • WooCommerce Wishlist
  • WP Fluent Forms
  • WPForms Lite
  • wpDiscuz
  • Φόρμα Νέου Θέματος WPForo
  • Φόρμα απάντησης WPForo


NOTE: This is a community-developed plugin. Your PRs are welcome.

For feature requests and issue reports, please
open a pull request.

We also suggest emailing the authors of plugins you’d like to support hCaptcha: it will usually take them only an hour or two to add native support. This will simplify your use of hCaptcha, and is the best solution in the long run.

Κάποια πρόσθετα που αναφέρονται εδώ έχουν ξεπεραστεί από εγγενή υποστήριξη και αναφέρονται μόνο για ιστορικούς λόγους.

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 popular native integrations are below:


Sign up at hCaptcha.com to get your sitekey and secret, then:

  1. Install hCaptcha either via the WordPress.org plugin repository (best) or by uploading the files to your server. (Upload instructions)
  2. Activate the hCaptcha plugin through the ‘Plugins’ menu in WordPress
  3. Enter your site key and secret in the Settings -> hCaptcha menu in WordPress
  4. Ενεργοποιήστε τις επιθυμητές ενσωματώσεις

Συχνές Ερωτήσεις

How do I use the hCaptcha plugin?

The hCaptcha plugin supports WordPress core and many plugins with forms automatically. You should select the supported forms on the hCaptcha plugin settings page.

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


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?

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_request_verify( 'my_hcap_action', 'my_hcap_name' );

See also the section “How to automatically verify an arbitrary form”

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, just 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">

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]' ); ?>

Secondly, verify the result of hCaptcha challenge.

$result = hcaptcha_verify_post();

if ( null !== $result ) {
    echo esc_html( $result );
    // Block processing of the form.

How to automatically verify an arbitrary form

Arbitrary user forms can be verified easily. Just add auto="true" or auto="1" to the shortcode:

[hcaptcha auto="true"]

and insert this shortcode into your form.

Auto-verification works with forms sent by POST on frontend only. Also, it works only with forms in the post content, but we have plans to extend the functionality.

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'] ) ?

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

  return $activate;

add_filter( 'hcap_activate', 'my_hcap_activate' );

How to show 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 API script from loading at all,
* until user interaction: mouseenter, click, scroll or touch.
* This significantly improves Google Pagespeed Insights score.
* @param int $delay Number of milliseconds to delay hCaptcha API script.
*                   Any negative value means delay until user interaction.
function my_hcap_delay_api( $delay ) {
  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 $language Language.
function my_hcap_language( $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 whitelist certain IPs

You can use the following filter:

 * Filter user IP to check if it is whitelisted.
 * For whitelisted IPs, hCaptcha will not be shown.
 * @param bool   $whitelisted Whether IP is whitelisted.
 * @param string $ip          IP.
 * @return bool
function my_hcap_whitelist_ip( $whitelisted, $ip ) {

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

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

  return $whitelisted;

add_filter( 'hcap_whitelist_ip', 'my_hcap_whitelist_ip', 10, 2 );

Why isn’t my WPForms Lite installation working?

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

Where can I get more information about hCaptcha?

Please see our website.


30 Νοεμβρίου 2022 1 απάντηση
I installed it just for WP register and log-in forms. It was fast and easy. Install plugin, make an account on hcaptcha site and enter sitekey and secretkey in the plugin setttings. That's all, it works! One more thing, under Integrations tabs choose where you want to use this plugin oh and no need to make account with google. The process is faster and easier.
13 Σεπτεμβρίου 2022
hCaptcha can be included into WPForms easily. Only the Site Key and Secret Key are needed which are available after the registration on the hCaptcha website. The verification via images in e.g. contact forms could be made easier for people with eye issues.
29 Αυγούστου 2022 1 απάντηση
Estaría bueno tuviera soporte para el formulario de Kadence blocks, por ahora me sirve para el login y comentarios, pero no para el formulario de contacto. Y no quiero usar el recaptcha de google. Cuando tenga soporte para Kadence blocks vuelvo y cambio la valoración.
Ανάγνωση όλων των 29 κριτικών

Συνεισφέροντες & Προγραμματιστές

“hCaptcha for WordPress” είναι λογισμικό ανοιχτού κώδικα. Οι παρακάτω έχουν συνεισφέρει στη δημιουργία του.


Το “hCaptcha for WordPress” έχει μεταφραστεί σε 7 γλώσσες. Ευχαριστούμε τους μεταφραστές για τις συνεισφορές τους.

Μεταφράστε το “hCaptcha for WordPress” στην γλώσσα σας.

Ενδιαφέρεστε για την ανάπτυξη;

Περιηγηθείτε στον κώδικα, ανατρέξτε στο αποθετήριο SVN ή εγγραφείτε στο αρχείο καταγραφής αλλαγών ανάπτυξης μέσω RSS .

Σύνοψη αλλαγών


  • Tested with WordPress 6.2.
  • Tested with WooCommerce 7.4.
  • Added compatibility with Asgaros Forum.
  • Added compatibility with Support Candy.
  • Added Login Form support for MemberPress.
  • Added compatibility with GiveWP.
  • Added compatibility with Brizy.
  • Added activation and deactivation of plugins from the Integrations admin page.
  • Fixed error during login with WordPress < 5.4.


  • Fixed fatal error with WordPress < 6.1.


  • Tested with WooCommerce 7.3.
  • Added ability to use the HTMl tag ‘Submit’ in the Contact Form 7.
  • Added compatibility with ACF Extended Pro Form.
  • Added login attempts limit to Beaver Builder login form.
  • Added login attempts limit to Divi login form.
  • Added login attempts limit to Ultimate Member login form.
  • Added login attempts limit to WooCommerce login form.
  • Added optimisation of autoloading to boost performance.
  • Added block of launching recaptcha scripts by wpDiscuz.
  • Fixed showing the hCaptcha widget on wpForo community page.
  • Fixed PHP notice on the General settings page.
  • Fixed bug with number of login attempts before showing the hCaptcha.


  • Tested with PHP 8.2.
  • Plugin now requires WP 5.0.
  • Added script loading delay time setting.
  • Added compatibility with Otter Blocks Forms.
  • Added compatibility with ACF Extended Form.
  • Added compatibility with Kadence Form.
  • Added compatibility with wpDiscuz.
  • Added ability to show hCaptcha after certain number of failed logins.
  • Fixed hCaptcha placement in Avada form.


  • Tested with WooCommerce 7.2.
  • Added compatibility with WC High-Performance order storage (COT) feature.
  • Added compatibility with Contact Form 7 v5.7.


  • Added Avada theme support.
  • Added Beaver Builder support.
  • Added compatibility with Wordfence login security.
  • Improved spam protection with Contact Form 7.
  • Fixed fatal error in standard login form with Ultimate Member active.
  • Fixed fatal error with Jetpack sync.


  • Tested with WooCommerce 7.1.
  • Added Forminator support.
  • Added Quform support.
  • Added Sendinblue support.
  • Added Download Manager support.
  • Added support for password protected post/page.
  • Added actual messages from hcaptcha.com.
  • Added support for Multipage Gravity Form.
  • Fixed error messaging in Ninja Forms.
  • Fixed ‘hcaptcha is not defined’ issue with Elementor.


  • Tested with WordPress 6.1.
  • Tested with WooCommerce 7.0.
  • Added Settings page with multiple tabs.
  • Added setting for whitelisted IPs.
  • Added ability to set options network-wide on multisite.
  • Fixed Divi contact form bug related to recaptcha compat.
  • Fixed bug with WC Wishlist create list form.
  • Fixed styles on WordPress Register page.
  • Fixed shifting of hCaptcha layout during load.
  • Fixed Contact Form hcaptcha invalidation messages.


  • Fixed grey left sidebar issue on Elementor edit page.


  • Tested with WooCommerce 6.8.
  • Added Divi Comment Form support.
  • Fixed WPForms Login form support.
  • Fixed not valid CSS to prevent a black box issue.
  • Fixed invalid hCaptcha error after correction of wrong input on Checkout page.
  • Fixed hCaptcha functionality on Elementor Pro edit page when hCaptcha is off for logged-in users.


  • Tested with WooCommerce 6.6.
  • Added support for Ultimate Member plugin (Login, Register, LostPassword forms).
  • Fixed weird black bordered rectangle to the left of hCaptcha challenge.


  • Tested with WordPress 6.0.
  • Tested with WooCommerce 6.5.


  • Tested with WooCommerce 6.4.
  • Added Gravity Forms support.
  • Added filter to whitelist IPs.
  • Added support for multiple Ninja forms on a single page.


  • Tested with WooCommerce 6.2.
  • Added support for PHP 8.1.
  • Added support for Divi Login form.
  • Added hCaptcha language filter.
  • Changed nonce verification. Now nonce is verified for logged-in users only.


  • Tested with WooCommerce 6.1.
  • Added support for hCaptcha in Elementor Popup.
  • Fixed WooCommerce login when hCaptcha for WP login is active.
  • Fixed issue with Safari version < 14.


  • Tested with WodPress 5.9 and WooCommerce 6.0.
  • Added support for WP Fluent Forms.
  • Fixed regex for non-standard Order Tracking form.


  • Added support for non-standard WC Order Tracking form.
  • Fixed fatal error with Elementor Pro 3.5.


  • Fixed Divi Contact form in frontend builder.
  • Fixed WooCommerce login form.
  • Fixed css and js to pass W3C validation.
  • Fixed issue with Safari and invisible hCaptcha on auto-verify form.
  • Fixed issue with login via XML-RPC.


  • Added support for Divi Contact form.
  • Added support for Elementor Pro form.
  • Added support for MemberPress Register form.
  • Added support for WooCommerce Order Tracking form.
  • Fixed layout on the WP login form.
  • Fixed issue with insertion of hCaptcha not only to Jetpack forms.
  • Fixed regex bug in auto verify feature, which prevented registering of forms.


  • Added Invisible hCaptcha feature.
  • Added delayed rendering of hCaptcha to improve Google PageSpeed Insights score.
  • hCaptcha moved inside of Jetpack block form, before submit button.
  • Fixed fatal error with Divi theme.
  • Fixed – only 1 Contact Form 7 was working on the page.
  • Nonce is now checked with Contact Form 7.


  • Added auto-verification of an arbitrary form.


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


  • Fixed issue with CF7 – hCaptcha is not shown.


  • 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.


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


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


  • Tested with WordPress 5.7 and WooCommerce 5.0


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


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


  • Make any Jetpack contact form working with Block Editor
  • Δοκιμάστηκε με WooCommerce 4.7


  • Δεν απαιτείται πρόκληση για απάντηση διαχειριστή σε σχόλιο


  • Υποστήριξη WPForms Pro


  • WPCS πρότυπα κώδικα και ενημέρωση τεκμηρίωσης


  • Δοκιμάστηκε με WordPress 5.5 και WooCommerce 4.4


  • Προστέθηκε υποστήριξη WPForms Lite


  • Διόρθωση σφαλμάτων λίστας επιθυμίας WooCommerce
  • ενημερώθηκε ο τομέας κειμένου: καλύτερη υποστήριξη διεθνοποίησης


  • διόρθωση σφάλματος CF7: επιβολή επικύρωσης


  • Ενημερώθηκε η τεκμηρίωση


  • Refactor για τη βελτίωση της υγιεινής κώδικα, διορθώσεις για την τελευταία έκδοση Ninja Forms.


  • Διορθώθηκε πρόβλημα με τα σχόλια, προστέθηκαν λίστες επιθυμιών WooCommerce


  • Ενημερωμένες πληροφορίες δοκιμών, βελτίωση τεκμηρίωσης.


  • Αυτόματη προσθήκη του κουμπιού hCaptcha στις φόρμες Contact Form 7 όταν είναι ενεργοποιημένη.


  • Ενημέρωση υποστήριξης Contact Form 7. Προστέθηκε συμβατότητα με έκδοση 5.1.3


  • Μικρές διορθώσεις σφαλμάτων


  • Δημιουργήθηκε το πρόσθετο