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?
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.
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
@@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?
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') }
@@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?
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
@@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. 👍
ty ♥ didn't remember how to do it at this time; already save it just in case ^^
Excellent video tutorial showing how to add reCAPTCHA v2. Thanks!
Thank you kindly Kara, also do keep in mind that rankya.com site has great how to's for WordPress and conversion optimization.
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?
So, where is the Recaptcha in the form? I don't see it
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.
thx good man :)
Happy to help
doesnt work, only appears 1 key, not 2....
What if I have two landing pages with CF7 and I want recaptcha v3 just for those two pages? Thank you!
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
@@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?
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')
}
Thank you so much!
Glad it helped!
@@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?
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
@@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. 👍
Thank you
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!
Thanks Alex, noted, will update with new video as soon possible, thanks for letting us know
@@RankYa Your welcome, theres a plugin that you can add to make it support it again.
@@alexlove2012 plugin name?
@@stevesmith1678 ReCaptcha v2 for Contact Form 7
bad work
What happened Edin? Perhaps detailing may allow us to solve it :-)