• Resolved Troglos

    (@troglos)


    Hi,

    I am using Recaptcha v3 included in Paid Memberships Pro, but it’s not blocked by Complianz. It appears in the cookies list (the wizard) but it’s alway loaded even if I refuse cookies.
    The same thing happened with v2. Unfortunately I cannot use Friendly Captcha.
    Is there a way to force the block of the loading?

    Thank you

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

Viewing 6 replies - 16 through 21 (of 21 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @troglos,

    As this appears to be working out-of-the-box on the site that @aahulsebos attached earlier, could you confirm that you have the below settings configured?

    – Our native Google ReCaptcha integration activated (Complianz > Integrations > Services)
    – Your custom addition to the script center deactivated

    If the issue still persists on your end, perhaps you could reach us on support(at)complianz.io, so we can speed this up?

    Kind regards,
    Jarno

    Thread Starter Troglos

    (@troglos)

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @troglos,

    Can you try deactivating the Contact Form 7 plugin, clear cache and then check the behavior of the Paid Memberships reCaptcha?

    As it seems that ReCaptcha is loaded by two plugins in this case.

    Kind regards,
    Jarno

    Thread Starter Troglos

    (@troglos)

    That’s it!
    Now it works like a charm.

    Obviously reCaptcha that comes with CF7 is not enabled but it’s loaded anyway.
    Now I have to find a way to force CF7 not to load it.
    If you have some advice it will be great, meanwhile I will do a research on that support forum.

    Thank you so much for your patience.

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    You could conditionally deactivate Contact Form 7 with this code, which does not load the plugin on the page /my-page-without-cf7/

    $request_uri = parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH );
    $is_admin = strpos( $request_uri, '/wp-admin/' );
    if( false === $is_admin ){
    	add_filter( 'option_active_plugins', function( $plugins ){
    		global $request_uri;
    		$is_contact_page = strpos( $request_uri, '/my-page-without-cf7/' );
    		$myplugin = "contact-form-7/wp-contact-form-7.php";
    		$k = array_search( $myplugin, $plugins );
    		if( false !== $k && false === $is_contact_page ){
    			unset( $plugins[$k] );
    		}
    
    		return $plugins;
    	} );
    }
    Thread Starter Troglos

    (@troglos)

    Unfortunately it’s not working.
    I was thinking about deleting completely the keys and regenerate a new set just for Paid Membership Pro settings, but then I finally solved using “Plugin Load Filter” and loading CF7 only in the contact page.

    Thank you again for the support!

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Recaptcha v3 not blocked’ is closed to new replies.