ruden Posted January 3, 2020 Share Posted January 3, 2020 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. Smoky Barnable, Krisz1, Hotclutch and 3 others 3 3 Quote Vanilla osCommerce this fork osCommerce v2.3.5 Download | Demo | Support Link to comment Share on other sites More sharing options...
domiosc Posted January 3, 2020 Share Posted January 3, 2020 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. 👍 valquiria23 1 Quote Link to comment Share on other sites More sharing options...
TomB01 Posted January 4, 2020 Share Posted January 4, 2020 (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 January 4, 2020 by TomB01 Quote Link to comment Share on other sites More sharing options...
TomB01 Posted January 4, 2020 Share Posted January 4, 2020 (edited) Never mind - my mistake. Thanks for the add-on! Edited January 4, 2020 by TomB01 Quote Link to comment Share on other sites More sharing options...
thierryc Posted January 4, 2020 Share Posted January 4, 2020 (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 January 4, 2020 by thierryc Quote Link to comment Share on other sites More sharing options...
mvela Posted January 8, 2020 Share Posted January 8, 2020 there is an error sintax in the file \includes\modules\boxes\bm_recaptcha.php Quote Link to comment Share on other sites More sharing options...
ruden Posted January 8, 2020 Author Share Posted January 8, 2020 Parse error: syntax error, unexpected '[' Your PHP version5.4 doesn't support [] use array() instead. Use php 7+ Quote Vanilla osCommerce this fork osCommerce v2.3.5 Download | Demo | Support Link to comment Share on other sites More sharing options...
ahjeff Posted January 10, 2020 Share Posted January 10, 2020 can enable in Modules > Boxes. but how to implement in specific page? Quote Link to comment Share on other sites More sharing options...
ruden Posted January 10, 2020 Author Share Posted January 10, 2020 which specific page? login.php - it doesn't make sense Quote Vanilla osCommerce this fork osCommerce v2.3.5 Download | Demo | Support Link to comment Share on other sites More sharing options...
ahjeff Posted January 10, 2020 Share Posted January 10, 2020 14 minutes ago, ruden said: which specific page? login.php - it doesn't make sense How to implement in login.php , contact_us.php ??? Quote Link to comment Share on other sites More sharing options...
ruden Posted January 10, 2020 Author Share Posted January 10, 2020 For login.php it doesn't make sense add recaptcha recaptcha works for pages contact_us.php and create_account.php Quote Vanilla osCommerce this fork osCommerce v2.3.5 Download | Demo | Support Link to comment Share on other sites More sharing options...
ahjeff Posted January 10, 2020 Share Posted January 10, 2020 Sorry, I missed that. I mean contact_us.php and create_account.php ... how to implement your module...? there is no options... Quote Link to comment Share on other sites More sharing options...
TomB01 Posted January 10, 2020 Share Posted January 10, 2020 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. Krisz1 1 Quote Link to comment Share on other sites More sharing options...
thierryc Posted January 10, 2020 Share Posted January 10, 2020 hello TOM it's normal the v3 is transparent, the processing is automatic without checkbox, silent mode bye thierry Quote Link to comment Share on other sites More sharing options...
TomB01 Posted January 10, 2020 Share Posted January 10, 2020 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? Quote Link to comment Share on other sites More sharing options...
thierryc Posted January 10, 2020 Share Posted January 10, 2020 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 Quote Link to comment Share on other sites More sharing options...
ruden Posted January 10, 2020 Author Share Posted January 10, 2020 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? Quote Vanilla osCommerce this fork osCommerce v2.3.5 Download | Demo | Support Link to comment Share on other sites More sharing options...
ruden Posted January 10, 2020 Author Share Posted January 10, 2020 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 Quote Vanilla osCommerce this fork osCommerce v2.3.5 Download | Demo | Support Link to comment Share on other sites More sharing options...
ahjeff Posted January 11, 2020 Share Posted January 11, 2020 How to implement in contact_us.php and create_account.php .? not all page is needed.. Quote Link to comment Share on other sites More sharing options...
ahjeff Posted January 11, 2020 Share Posted January 11, 2020 (edited) i get it now... it will protect the whole site. thanks for your work Edited January 11, 2020 by ahjeff missed Quote Link to comment Share on other sites More sharing options...
TomB01 Posted January 11, 2020 Share Posted January 11, 2020 (edited) 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 January 11, 2020 by TomB01 Quote Link to comment Share on other sites More sharing options...
ahjeff Posted January 13, 2020 Share Posted January 13, 2020 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 ) Quote Link to comment Share on other sites More sharing options...
Krisz1 Posted January 25, 2020 Share Posted January 25, 2020 Thanks so much for this contribution, I was tired of getting so much spam on contact_us (I'm on 2.3.4). Quote Link to comment Share on other sites More sharing options...
Krisz1 Posted January 28, 2020 Share Posted January 28, 2020 (edited) 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 January 28, 2020 by Krisz1 Quote Link to comment Share on other sites More sharing options...
valquiria23 Posted January 29, 2020 Share Posted January 29, 2020 Hi Valeriy @ruden Thanks for developing Free modules for oscommerce. Fredi 1 Quote Community Oscommerce fan You'll find the latest osC community version here. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.