Jump to content
ruden

Google reCAPTCHA v3

Recommended Posts

Google reCAPTCHA v3

For all version osCommerce stops bots from spamming account creation and contact us.

Install
---------

Unzip the archive and upload the files on server.
In the admin side menu Modules -> Boxes -> button Install Module -> select modules Google reCAPTCHA v3 -> button Install Module

Setting
----------

Go to reCAPTCHA v3 page https://www.google.com/recaptcha/intro/v3.html and register your store.
Add Site key and Secret key to module settings.

Share this post


Link to post
Share on other sites
define('MODULE_BOXES_RECAPTCHA_TITLE', 'Google reCAPTCHA v3');
define('MODULE_BOXES_RECAPTCHA_DESCRIPTION', 'Ir a <a href="https://www.google.com/recaptcha/intro/v3.html" target="_blank"><u>la página reCAPTCHA v3 </u></a> y registra tu página web.');

Spanish language.
Thanks for develop modules for phoenix. 👍

Share this post


Link to post
Share on other sites
Posted (edited)

On 2.3.4, unzipped and uploaded the two files.  No Module appears for Install Module under Admin.

Are some some edits to the core code somewhere necessary to read the new files?

Edited by TomB01

Share this post


Link to post
Share on other sites
Posted (edited)

Never mind - my mistake. 

Thanks for the add-on!

Edited by TomB01

Share this post


Link to post
Share on other sites
Posted (edited)
define('MODULE_BOXES_RECAPTCHA_TITLE', 'Google reCAPTCHA v3');
define('MODULE_BOXES_RECAPTCHA_DESCRIPTION', 'Allez à <a href="https://www.google.com/recaptcha/intro/v3.html" target="_blank"><u>reCAPTCHA v3 page</u></a> et enregistrez votre site web.');

hello language french

Thanks for the add-on

Edited by thierryc

Share this post


Link to post
Share on other sites

Parse error: syntax error, unexpected '['

Your PHP version5.4 doesn't support [] use array() instead.
Use php 7+

Share this post


Link to post
Share on other sites

which specific page?

login.php - it doesn't make sense

Share this post


Link to post
Share on other sites
14 minutes ago, ruden said:

which specific page?

login.php - it doesn't make sense

How to implement in login.php , contact_us.php ???

Share this post


Link to post
Share on other sites

For login.php it doesn't make sense add recaptcha
recaptcha  works for pages contact_us.php and create_account.php

Share this post


Link to post
Share on other sites

Sorry, I missed that.  I mean  contact_us.php and create_account.php  ... how to implement your module...? there is no options...

Share this post


Link to post
Share on other sites

Anyway to make this work under php 5.4?  I tried replacing "[]" with "array()" everywhere, but the google recaptcha doesn't appear on either page, create_account or contact_us.

Share this post


Link to post
Share on other sites

hello TOM  it's normal the v3 is transparent, the processing is automatic without checkbox, silent mode

bye thierry

Share this post


Link to post
Share on other sites
17 minutes ago, thierryc said:

hello TOM  it's normal the v3 is transparent, the processing is automatic without checkbox, silent mode

bye thierry

I'm confused.  If it doesn't appear, how do I know it's doing anything at all?

The reCaptcha in Phoenix shows the Google "I'm not a robot" checkbox, then proceeds to give you visual test.

I'm trying to stop all of these Russian user accounts and Contact e-mails that keep spamming my 2.3.4 store, until I have Phoenix ready.  It's taking a lot of my time to clean this junk out when I could be doing more work upgrading to Phoenix.  I had 20 spurious accounts I had to remove just this morning!

Can I just manually add the Google reCaptcha code to my 2.3.4 contact_us.php and create_account.php pages?

Share this post


Link to post
Share on other sites
24 minutes ago, TomB01 said:

I'm confused.  If it doesn't appear, how do I know it's doing anything at all?

in the google reCAPTCHA v3 account it indicates the information if it has blocked or not attempts

Share this post


Link to post
Share on other sites
7 hours ago, ahjeff said:

Sorry, I missed that.  I mean  contact_us.php and create_account.php  ... how to implement your module...? there is no options...

For which page do you want to install recaptcha?

Share this post


Link to post
Share on other sites
2 hours ago, TomB01 said:

Anyway to make this work under php 5.4?  I tried replacing "[]" with "array()" everywhere, but the google recaptcha doesn't appear on either page, create_account or contact_us.

and replace protected function -> function

Share this post


Link to post
Share on other sites

i get it now... it will protect the whole site.

thanks for your work

Edited by ahjeff
missed

Share this post


Link to post
Share on other sites
16 hours ago, ruden said:

and replace protected function -> function

OK - I'll continue work on it.

1. The Google Admin Console is buried worse than most things I've seen.  Maybe I'm mentally challenged this weekend, but the only way I got to it was a through a Google search to this page: https://developers.google.com/recaptcha/docs/v3.

Even then, a link was buried in the text about halfway down.  I could not find it anywhere in my Google account settings or in the other reCaptcha documentation, particularly not in the Admin Console documentation itself.  I probably kept overlooking it in the page above, but who knew?

2. Apparently, my keys are only valid for reCaptcha v2, since I had already registered for Gary's Phoenix add-on.  The reCaptcha keys also appear to be tied to my Google account, since the reCaptcha pages direct one to "choose" which you want.  I suppose I will need to create another Google account if I want to use more than one type of captcha, e.g. reCaptcha v3 for my 2.3.4 site and reCaptcha v2 for Phoenix.

Note that these are Google complaints only - not for this add-on!

Anyway, thanks for the help - it is much appreciated.

Edited by TomB01

Share this post


Link to post
Share on other sites

Yes, the google code lab really useless....so as the developer forum ....

 

If you need to use reCaptcha v3, you can just  Register a new site in the admin console. ( you can use same account, they will give you other keys )

 

 

 

 

Share this post


Link to post
Share on other sites

Thanks so much for this contribution, I was tired of getting so much spam on contact_us (I'm on 2.3.4). 

Share this post


Link to post
Share on other sites

Hey folks,

I am still getting spammed even though recaptcha v3 is set up on contact_us.php. Looking at the google console, most bots are given a 0.9 punctuation score.

Even though I selected 1.0 as the threshold in admin panel, google doesn't seem to care much for extra verification like recaptcha v2. Does the threshold I select at the admin panel gets passed onto the script?

Thank you.

 

Edited by Krisz1

Share this post


Link to post
Share on other sites

Hi Valeriy  @ruden

Thanks for developing Free modules for oscommerce.  


Please do not falsify my words. Are you interested in knowing who does it? Send me a PM.

The Phoenix Club won't allow me to join - why not?

Setting up a new Frozen site with so many nice addons available on the market. 

:heart: Community Oscommerce fan :heart:

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×