• Resolved C Green

    (@cgreen177)


    I’m having trouble changing recaptcha to use recaptcha.net – which I would like to do from a GDPR point of view to stop tracking cookies.

    I’ve created a dummy contact form to test this but no joy …

    I (think I) have followed the instructions here but I cannot get the recaptcha endpoint to change: https://contactform7.com/faq-about-recaptcha-v3/

    I’ve added the following code snippet:

    function test_recaptcha() {
    add_filter( 'wpcf7_use_recaptcha_net', '__return_true' );
    	echo 'filter addded';
    }
    
    add_action('wp_head', 'test_recaptcha');

    I can see the filter is being added via the echo, but the endpoints remain as google.com ones. I must be missing something obvious but I cannot work out what …

    Any help appreciated!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    FAQ > Can I use “www.recaptcha.net”?

    Just do what it says.

    I would like to add that www.recaptcha.net has nothing to do with GDPR.

    Thread Starter C Green

    (@cgreen177)

    True re GDPR but at least I can argue that the GRECAPTCHA cookie is necessary and I am not adding tracking cookies to the site, like I would by using the google.com endpoint. So for me it makes me more GDPR compliant, which is why I would like to use it.

    Weird … I’ve just retested and it is working fine. I suspect a cloudflare caching issue perhaps? Thank you!

    Edit: I’m seeing inconsistent results. I’ve just purged the cloudlfare cache and do not have any other caching on the site. I did see it working correctly once.

    The request URL is back to being this:

    Request URL: https://www.google.com/recaptcha/api2/anchor?ar=1&k=6Ld0ObEUAAAAAF79KaWY4Vgnua_cDMUBlE0QSEKP&co=aHR0cHM6Ly9kZXYuZ3JleXN0b2tld2ViZGVzaWduLmNvLnVrOjQ0Mw..&hl=en&v=yZguKF1TiDm6F3yJWVhmOKQ9&size=invisible&cb=4tmtcvpyaj3r

    The code I’ve added was a copy and paste from the FAQ wrapped in a function to add it to wp_head. So it should be working … and like I say, the echo is showing on the page, suggesting the code is running

    • This reply was modified 3 years, 4 months ago by C Green. Reason: inconsistent behaviour in endpoint url
    • This reply was modified 3 years, 4 months ago by C Green.
    Thread Starter C Green

    (@cgreen177)

    Edit: managing to get some consistent results now by not wrapping it in the function (at least on one site. It’s still not working on another but I am assuming that is a Cloudflare issue until I can prove otherwise)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘recaptcha.net’ is closed to new replies.