Support » Plugin: Contact Form 7 » Conditionally load reCaptcha

  • To load reCaptcha on every-single-page of the site is a major design flaw.

    It is a crime against user experience to arrive at a home page and have to prove to google that you aren’t a robot.

    Luckily all this can be fixed by conditionally loading your scripts.

    function recaptcha_shortcode_scripts() {
    global $post;
    if( is_a( $post, ‘WP_Post’ ) && has_shortcode( $post->post_content, ‘contact-form-7’) ) {
    wp_enqueue_script( ‘…’);
    add_action( ‘wp_enqueue_scripts’, ‘recaptcha_shortcode_scripts’);

Viewing 1 replies (of 1 total)
  • Actually, according to Google the reason reCaptcha v3 supposedly works without user input is that their algorithms track this script’s interactions through all pages/posts on the site to best determine whether any potential spammer is a real human or a bot.

    It operates similar to Google’s analytics script. Therefore, it must be loaded up on every single page/post to work correctly.

    At least, that’s the propaganda they’re peddling to promote the proliferation of this additional tracking tool. It seems we now need anti-Google tools for our anti-spam tools.

    Hence, the major pushback from users wishing for a less intrusive, more streamlined anti-spam measure like reCaptcha v2.

    I still think CF7 should allow users to choose which version of reCaptcha to use with this plugin. A simple conditional check made through a checkbox in the settings would do the job nicely. –Until Google unavoidably depreciates v2, that is.

Viewing 1 replies (of 1 total)
  • The topic ‘Conditionally load reCaptcha’ is closed to new replies.