Spambot countermeasures - Configuration with reCAPTCHA v3

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
User avatar
Galixte de EzCom
Registered User
Posts: 1106
Joined: Mon Oct 04, 2004 11:14 pm
Location: France
Name: Raphaël M.
Contact:

Spambot countermeasures - Configuration with reCAPTCHA v3

Post by Galixte de EzCom »

Hi,

When I configure the reCaptcha v3 keys on “Spambot countermeasures” page I have an error from Google reCaptcha like: “ERROR for the site owner: Invalid site key”.

I set the correct domain names on Google reCaptcha page.

Anyone use this new version?

EDIT: I think it’s because in phpBB code it’s formatted for reCaptcha v2 not for v3. Moreover I can see on the Registration page the code in the JS file called from Google reChaptcha Website is like this:

Code: Select all

/* PLEASE DO NOT COPY AND PASTE THIS CODE. */
(function(){var CFG='___grecaptcha_cfg';
if(!window[CFG]){window[CFG]={};
}var GR='grecaptcha';
if(!window[GR]){window[GR]={};
}window[GR].ready=window[GR].ready||function(f){(window[CFG]['fns']=window[CFG]['fns']||[]).push(f);};
(window[CFG]['render']=window[CFG]['render']||[]).push('onload');
window['__google_recaptcha_client']=true;
var po=document.createElement('script');
po.type='text/javascript';
po.async=true;po.src='https://www.gstatic.com/recaptcha/api2/v1543818755456/recaptcha__fr.js';
var elem=document.querySelector('script[nonce]');
var n=elem&&(elem['nonce']||elem.getAttribute('nonce'));
if(n){po.setAttribute('nonce',n);
}var s=document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(po, s);})();
Is Api2 concerns only Google reCaptcha v2?
Last edited by Galixte de EzCom on Wed Dec 12, 2018 10:22 pm, edited 2 times in total.
Communau EzCom
📖 « Traductions d’extensions & styles pour phpBB 3.2.x & 3.3.x ».
📋 Lists of all extensions identified for phpBB 3.1.x & 3.2.x.
📋 Lists of all styles identified for phpBB 3.1.x & 3.2.x.
Image Tu as un forum et tu veux aussi un site web ? Regarde par ici.
Bermudez
Registered User
Posts: 171
Joined: Mon Aug 15, 2011 11:56 pm
Location: Spain
Name: Juan Antonio
Contact:

Re: Spambot countermeasures - Configuration with reCAPTCHA v3

Post by Bermudez »

I use the latest version of reCaptcha (v3) and the API keys are the same as those used in reCaptcha v2, and it works correctly.
User avatar
apex777
Registered User
Posts: 13
Joined: Mon Dec 03, 2012 11:25 pm
Location: Ohio
Name: Nate
Contact:

Re: Spambot countermeasures - Configuration with reCAPTCHA v3

Post by apex777 »

I am also having issues with Recaptcha V3 on phpBB 3.2.2 board.

Does anyone have a solution for this yet? I was thinking to turn off Spambot countermeasures in ACP, then manually place code snippets as instructed by Recaptcha V3 documentation.

Thoughts?
User avatar
apex777
Registered User
Posts: 13
Joined: Mon Dec 03, 2012 11:25 pm
Location: Ohio
Name: Nate
Contact:

Re: Spambot countermeasures - Configuration with reCAPTCHA v3

Post by apex777 »

Bermudez wrote: Wed Dec 12, 2018 7:58 pm I use the latest version of reCaptcha (v3) and the API keys are the same as those used in reCaptcha v2, and it works correctly.
What version of phpBB Board are you using?
Bermudez
Registered User
Posts: 171
Joined: Mon Aug 15, 2011 11:56 pm
Location: Spain
Name: Juan Antonio
Contact:

Re: Spambot countermeasures - Configuration with reCAPTCHA v3

Post by Bermudez »

apex777 wrote: Mon Dec 17, 2018 8:26 pm
Bermudez wrote: Wed Dec 12, 2018 7:58 pm I use the latest version of reCaptcha (v3) and the API keys are the same as those used in reCaptcha v2, and it works correctly.
What version of phpBB Board are you using?
3.2.4

Edit:
I just did a few tests and reCaptcha V3 only works with the V2 API keys, but not with the V3 API keys. With the V3 API keys appears the same error that Galixte de EzCom comments in his post. Image Image
BigDrago
Registered User
Posts: 366
Joined: Fri Dec 10, 2004 5:16 pm
Location: Norway

Re: Spambot countermeasures - Configuration with reCAPTCHA v3

Post by BigDrago »

Did u fix it? I need to use recaptcha v3 due to spambots.
User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10552
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Spambot countermeasures - Configuration with reCAPTCHA v3

Post by Noxwizard »

phpBB does not currently support reCAPTCHA v3. There is a ticket open to add support for it: https://tracker.phpbb.com/browse/PHPBB3-15937
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.
Post Reply

Return to “[3.2.x] Support Forum”