Title: Google ReCapthca
Last modified: October 31, 2023

---

# Google ReCapthca

 *  Resolved [bernardh99](https://wordpress.org/support/users/bernardh99/)
 * (@bernardh99)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/google-recapthca/)
 * What is the recommended way to add ReCapthca V2 or 3? I see some mentions for
   wpbruiser but it has not been updated in 3 years

Viewing 1 replies (of 1 total)

 *  [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/google-recapthca/#post-17164139)
 * I recommend using hCaptcha.
 * I did some testing on how to add a hCaptcha to HTML forms:
    1. Install and activate the hcaptcha plugin, create a free hCaptcha account and
       add your credentials in the hCaptcha plugin settings
    2. Add the following code snippet to your website:
 *     ```wp-block-code
       add_filter('hf_validate_form', function( $error_code, $form, $data ) {
       $result = hcaptcha_verify_post();
       if ( null !== $result ) {
       $error_code = 'catcha_failed';
       }
       return $error_code;
       },10,3);
   
       add_filter(
       'hf_template_tags',
       function( $tags ) {
       $tags['hcaptcha'] = do_shortcode( '[hcaptcha]' );
       return $tags;
       }
       );
       add_filter( 'hf_validate_form_request_size', '__return_false');
       ```
   
    3. add {{hcaptcha}} to your HTML-Forms fields where you want to show the captcha.
 * Hope that helps. If you have any questions, please let me know!

Viewing 1 replies (of 1 total)

The topic ‘Google ReCapthca’ is closed to new replies.

 * ![](https://ps.w.org/html-forms/assets/icon-256x256.png?rev=1754345)
 * [HTML Forms - Simple WordPress Forms Plugin](https://wordpress.org/plugins/html-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/html-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/html-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/html-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/html-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/html-forms/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Lap](https://wordpress.org/support/users/lapzor/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/google-recapthca/#post-17164139)
 * Status: resolved