• Resolved Rufus McDufus

    (@rufus-mcdufus)


    Hi – I seem to have an issue with Recaptcha & CF7. With Recaptcha v3 I’m seeing a lot of requests (thousands per day) in the “Total requests” field on the Google Recaptcha console and I’m also seeing the warning message:

    We detected that your site is not verifying Recaptcha tokens. Please see our developer site for more information.

    It appears to be hitting Google Recaptcha for every single site page view, hence the high number of requests. I’m not sure if this is normal? I know the js scripts load for every page but I wasn’t sure if it was making requests for every page.

    Regarding the error/warning, I can’t figure why this might be happening. I’m guessing possibly some Javascript issue – conflict with theme/other plugins perhaps, or order in which they’re being run. Other than that I think Recaptcha is actually working OK as I’m not getting much spam! I’ve had a quick look through in a browser debugging session and nothing obvious stands out.

    • This topic was modified 3 years, 6 months ago by Rufus McDufus.

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

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

    (@takayukister)

    reCAPTCHA on the site seems to be working correctly. Have you already fixed it?

    Thread Starter Rufus McDufus

    (@rufus-mcdufus)

    Hi, and thanks for checking.

    That’s the thing, as far as I can see everything is working fine. My concern is for the “not verifying reCaptcha tokens” in the Google Recaptcha admin console. I’m wondering maybe if bots are hitting the site and somehow exploiting the API and making malformed Recaptcha requests. The thousands (daily) of “Total requests” mentioned on the Google admin console might support this idea. It only lists high risk and low risk requests, and the bulk are appearing as “low risk”.

    I’m not sure there’s anything that can be done. I think I’ll ignore those errors! Thanks again!

    • This reply was modified 3 years, 6 months ago by Rufus McDufus.
    Thread Starter Rufus McDufus

    (@rufus-mcdufus)

    Looking in the access logs and grepping for “contact-form-7” it looks like it’s loading these for every page view. Below are entries for a single page view for the front page which has no contact form on. IP address obfuscated.

    xx.xx.xx.xx - - [30/Apr/2023:08:45:34 +0000] "GET /wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.7.6 HTTP/1.1" 200 2859 "https://biasedbbc.tv/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
    xx.xx.xx.xx - - [30/Apr/2023:08:45:35 +0000] "GET /wp-content/plugins/contact-form-7/includes/swv/js/index.js?ver=5.7.6 HTTP/1.1" 200 10241 "https://biasedbbc.tv/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
    xx.xx.xx.xx - - [30/Apr/2023:08:45:35 +0000] "GET /wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.7.6 HTTP/1.1" 200 12943 "https://biasedbbc.tv/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
    xx.xx.xx.xx - - [30/Apr/2023:08:45:35 +0000] "GET /wp-content/plugins/contact-form-7/modules/recaptcha/index.js?ver=5.7.6 HTTP/1.1" 200 999 "https://biasedbbc.tv/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"

    So I guess the question is – is it normal to load the Contact Form 7 stuff on every page?

    Thread Starter Rufus McDufus

    (@rufus-mcdufus)

    Ah, apologies, I see this is normal behaviour. I might try your suggestions here.

    https://contactform7.com/loading-javascript-and-stylesheet-only-when-it-is-necessary/

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘reCAPTCHA v3 “We detected that your site is not verifying reCAPTCHA tokens.”’ is closed to new replies.