How to Add ReCaptcha v2 in Contact Form 7

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

Комментарии • 28

  • @flaxi1245
    @flaxi1245 2 года назад

    ty ♥ didn't remember how to do it at this time; already save it just in case ^^

  • @ArtDesignGirl
    @ArtDesignGirl 2 года назад

    Excellent video tutorial showing how to add reCAPTCHA v2. Thanks!

    • @RankYa
      @RankYa  2 года назад

      Thank you kindly Kara, also do keep in mind that rankya.com site has great how to's for WordPress and conversion optimization.

  • @relaxedandlovingit
    @relaxedandlovingit Год назад

    My reCaptcha is set up exactly like yours, I even have the little reCaptcha symbol on my site however, a few hours after set up, I received 9 emails from bots that filled out my contact form 7. Does this mean that it's not working for me? I checked my google analytics and it stated that it registered the 9 bots as 'low risk'. I feel stuck on how to fix it. Any advice?

  • @olgaprokopenko2080
    @olgaprokopenko2080 Год назад

    So, where is the Recaptcha in the form? I don't see it

    • @RankYa
      @RankYa  Год назад

      Great question Olga, Recaptcha V3 doesn't usually show to everyone (it works on Google technology and IP address of the visitor). Meaning, IF Google Recaptcha technology thinks to verify the visitor, THEN, the verification feature will show. You can test things from the Admin panel, or you can try using Free Web Proxy websites to test.

  • @waichwaichpl
    @waichwaichpl 2 года назад

    thx good man :)

    • @RankYa
      @RankYa  2 года назад

      Happy to help

  • @husseinieuskalherria313
    @husseinieuskalherria313 3 года назад +1

    doesnt work, only appears 1 key, not 2....

  • @MrDamirich
    @MrDamirich 3 года назад

    What if I have two landing pages with CF7 and I want recaptcha v3 just for those two pages? Thank you!

    • @RankYa
      @RankYa  3 года назад +1

      I think I know what you mean in a sense that you do NOT want all the scripts to load on all pages. First, this will be too hard for you if you aren't familiar with backend of WordPress. If you're not, then, simply ignore, but, if you really want to NOT show Captcha on other pages, then, you need to edit the Theme code.
      There are 2 ways to do this:
      1 simple way is to use CSS and find CSS (class or id) and then something like this would make the recaptcha not show up
      .gcaptcha{
      display:none
      }
      2 another way is to completely *not* load the Scripts and CSS that makes Google recaptcha not work on other pages apart from the one you specify like so in functions.php
      if( !is_page('contact') ) {
      wp_deregister_script( 'contact-form-7' );
      wp_dequeue_script( 'contact-form-7' );
      wp_dequeue_script( 'wpcf7-recaptcha' );
      wp_deregister_script( 'wpcf7-recaptcha' );
      wp_dequeue_script( 'google-recaptcha' );
      wp_deregister_script( 'google-recaptcha' );
      }
      }
      //saying if the PAGE is NOT called 'contact' deregister and dequeue (you can use either one or both) depending on your WordPress site setup. This will ensure that Contact Form 7 Plugin scripts are only loaded on a page called 'contact' and also ensure google-recaptcha to do the same.
      For those you are Search Engine Optimizers, this is part of website optimization for WordPress because using such tactics you can find other scripts and CSS and Deregister them when not needed (ALL WordPress built sites have many many scripts which load for no reason on certain part of WP).
      Thank you for learning with RankYa :-) and spreading the word

    • @MrDamirich
      @MrDamirich 3 года назад

      ​@@RankYa Thank you for fast response! This is my case, I have a multilingual website and the same "Contact" page has two different URLs (one for every language). I want to load Scripts only on this page but on both languages. Will this work?

    • @RankYa
      @RankYa  3 года назад

      Yes, it will Maririch, all you have to do is just ensure the URL (id or name is okay) is set up like so:
      if( !is_page('contact') || !is_page('contactPage2') ) {
      remove scripts here upon the above condition, you can keep adding more by using
      ||
      this in PHP called OR operator. And ! is negation operator, meaning NOT. Thus, when you say
      if( !is_page('contact') || !is_page('contactPage2') ) you are saying IF its NOT page called 'contact' OR IF its NOT page called 'contactPage2' then remove the scripts. That means you can continue adding more URL's
      !is_page('contact') || !is_page('contactPage2') || !is_page('anotherPage') || !is_page('yetanotherPage')
      }

  • @dwarftomatoproject
    @dwarftomatoproject 3 года назад

    Thank you so much!

    • @RankYa
      @RankYa  3 года назад

      Glad it helped!

    • @dwarftomatoproject
      @dwarftomatoproject 3 года назад

      @@RankYa I’m a bit confused that some spam messages are still coming through even though reCaptcha is now in position on my contact page. What should I do next?

    • @RankYa
      @RankYa  3 года назад

      Unfortunately using Google reCaptcha doesn't mean we are 100% protected from spam. Because some spambots still are able to bypass reCaptcha process. Although you can try to add additional layer of security checks, I would consider just housekeeping in email inbox (because each additional layer of security also makes the real visitors job harder to send messages as well). So, I guess we just have to live with it

    • @dwarftomatoproject
      @dwarftomatoproject 3 года назад

      @@RankYa Thank you again, the situation is much better than previously and I do agree that to add another layer would be a disincentive to people wanting to get in touch. I’ll just delete the few that are breaking through. 👍

  • @andreshp6277
    @andreshp6277 3 года назад

    Thank you

  • @alexlove2012
    @alexlove2012 3 года назад +1

    Recaptcha v2 is no more supported in CF7 ... LOL ... So you form is not protected at all if you dont modify cf7 to support it again!

    • @RankYa
      @RankYa  3 года назад +1

      Thanks Alex, noted, will update with new video as soon possible, thanks for letting us know

    • @alexlove2012
      @alexlove2012 3 года назад

      @@RankYa Your welcome, theres a plugin that you can add to make it support it again.

    • @stevesmith1678
      @stevesmith1678 2 года назад

      @@alexlove2012 plugin name?

    • @oliverseifert6575
      @oliverseifert6575 2 года назад

      @@stevesmith1678 ReCaptcha v2 for Contact Form 7

  • @edinhasancevic5954
    @edinhasancevic5954 2 года назад +1

    bad work

    • @RankYa
      @RankYa  2 года назад

      What happened Edin? Perhaps detailing may allow us to solve it :-)