Full service web hosting, great prices and support. Starts at $1.99/month!
Page 2 of 3 First 123 LastLast
Results 11 to 20 of 22

Thread: Recaptcha V3.x

  1. #11
    osCMax Development Team

    Recaptcha V3.x

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,164
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    100


    Thumbs up Re: Recaptcha V3.x - one resolution that works!

    Quote Originally Posted by JRR View Post
    That worked! Just as advertised! I made it a simple math question...

    (example question)

    define('ENTRY_ANTI_ROBOT_TEXT','<- 1+1= ?');

    (example answer)

    if ( ($antirobot == '2') OR ($antirobot == 'two') )

    Thanks for saving me endless hours of poking at the code!
    Great- you're very welcome.
    You can apply the same principal to other pages, such as Tell A Friend but I usually just turn that off 'cos it's just a spam magnet.
    Better to just use "Social Bookmarks".

    Code:
    if ( ($antirobot == '2') OR ($antirobot == 'two') OR  ($antirobot == 'Two')  )


    Quote Originally Posted by JRR View Post
    Do you have a PayPal tip jar??
    Sure do, bud. paypal.me/ejsolutions
    Last edited by ridexbuilder; 04-13-2020 at 03:12 PM.

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  2. #12
    osCMax Development Team

    Recaptcha V3.x

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,164
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    100


    Thumbs up Re: Recaptcha V3.x

    Many thanks for the beer money! Very much appreciated.
    If you'd like the use of a free VPS until this Black Friday (thereabouts) to help with tests etc. then shoot me a PM. I paid for it but it's unused.

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  3. #13
    Senior Member
    Recaptcha V3.x


    Join Date
    Sep 2009
    Location
    Vancouver, BC, Canada
    Posts
    501
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    JRR     $ 180.00
    Rep Power
    76


    Default Re: Recaptcha V3.x

    I'm good - have VPN (via BitDefender) and lots of room on flippers.com to develop shopping carts. I have full CP rights.

    I also usually develop in localhost, then install in a hidden directory online to finish testing the job before going live.

    Warm beer - not sure I'd like that, but next time I'm over to the UK I will give it a try...

    Thanks!

  4. #14
    Senior Member
    Recaptcha V3.x


    Join Date
    Sep 2009
    Location
    Vancouver, BC, Canada
    Posts
    501
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    JRR     $ 180.00
    Rep Power
    76


    Default Re: Recaptcha V3.x

    Just a note that a week later and still no Google 'customers' - thanks again ridexbuilder, you have saved me a lot of time scrubbing those 'customers' every day!

    If you haven't added his code to your site yet, then I suggest you do it now, unless you like purging fake customers that is...

  5. #15
    Member
    Recaptcha V3.x


    Join Date
    May 2017
    Posts
    84
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    Markcm     $ 0.00
    Rep Power
    9


    Default Re: Recaptcha V3.x

    Quote Originally Posted by Markcm View Post
    Heads up, in my experience V2 is now updated. Although I've moved to opencart, I was getting blasted with bots creating accounts. V2 no longer slowed them down. V3 stopped the bot accounts 100%.
    I think you figured it out but I just noticed my typo here. This was supposed to say "in my experience V2 is now outdated", not "updated".

  6. #16
    osCMax Development Team

    Recaptcha V3.x

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,164
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    100


    Thumbs up Re: Recaptcha V3.x

    Quote Originally Posted by JRR View Post
    Just a note that a week later and still no Google 'customers' - thanks again ridexbuilder, you have saved me a lot of time scrubbing those 'customers' every day!
    If you haven't added his code to your site yet, then I suggest you do it now, unless you like purging fake customers that is...
    Great! Glad it's working out for ya. Amazing how simple things can be so effective. Better than trying to suss out some of those recaptcha puzzles too.

    Note: good idea to also add it to Contact Us.
    Last edited by ridexbuilder; 04-22-2020 at 05:28 AM.

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  7. #17
    Senior Member
    Recaptcha V3.x


    Join Date
    Sep 2009
    Location
    Vancouver, BC, Canada
    Posts
    501
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    JRR     $ 180.00
    Rep Power
    76


    Default Re: Recaptcha V3.x

    Ah, right, I will do that - add your mod to "Contact Us", I don't think my parts guy is getting spams from there, and he did say the volume of registrations plummeted once I added your simple mod.

  8. #18
    Senior Member
    Recaptcha V3.x


    Join Date
    Sep 2009
    Location
    Vancouver, BC, Canada
    Posts
    501
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    JRR     $ 180.00
    Rep Power
    76


    1 out of 1 members found this post helpful.

    Default Re: Recaptcha V3.x

    Had to add the mod to Contact Us, getting messages there from annoying bots! I had a health problem in early May and was off for a bit. Better now!

    In catalog/templates/fallback/content (if no new templates)/contact_us.tpl.php the bit goes just after about line 130 "<?php } ?>".

    Also change "$messageStack->add('create_account', ENTRY_SECURITY_CHECK_ERROR);" to "$messageStack->add('contact_us', ENTRY_SECURITY_CHECK_ERROR);" for /catalog/contact_us.php additional code...

    I think that is it.
    Last edited by JRR; 09-04-2020 at 01:26 PM.

  9. #19
    osCMax Development Team

    Recaptcha V3.x

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,164
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    100


    Default Re: Recaptcha V3.x

    Glad that you've bounced back from health issues.

    I checked and have it working on one site, so have taken a quick look at the code that I used..

    templates/your_template/content/contact_us.tpl.php
    Right after the Recaptcha section around line 178 onwards
    Code:
    <!-- end modification for reCaptcha -->
    <?php } ?>
    
                    </table>
                </td>
                
              </tr>
            </table></td>
          </tr>
          
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
          </tr>
          <tr>
            <td>      
              <table border="0" width="100%" cellspacing="1" cellpadding="2">
                <tr>
                 <td class="main" width="150">
                    <?php echo ENTRY_ANTI_ROBOT; ?>
                 </td>
                 <td class="main">
                    <?php echo tep_draw_input_field('antirobot') . '&nbsp;' . (tep_not_null(ENTRY_ANTI_ROBOT_TEXT) ? '<span class="inputRequirement">' . ENTRY_ANTI_ROBOT_TEXT . '</span>': ''); ?>
                 </td>
                </tr>
             </table>
           </td>
          </tr>
    Nothing else added in that file.

    catalog/contact_us.php around line 28
    Code:
    // end modification for reCaptcha
    
        $antirobot = tep_db_prepare_input($_POST['antirobot']);
    Around line 97
    Code:
    // end modification for reCaptcha
    
        // if  ($antirobot != 'yes')  {
        if ( ($antirobot == 'yes') OR ($antirobot == 'Yes') ) {
           $error = false;
           } else {
           $error = true;
           $messageStack->add(contact_us', ENTRY_SECURITY_CHECK_ERROR);
         }
    Note the response to the question is also specified in the lines above

    catalog/includes/languages/english/contact_us.php bottom of the file should look like this:
    Code:
    define('TEXT_REVEAL_EMAIL', 'Click to reveal email');
    
    define('ENTRY_ANTI_ROBOT','Anti-robot question');
    define('ENTRY_ANTI_ROBOT_TEXT','<- Type the word yes');
    ?>
    Thanks @JRR - I missed the $messageStack->add('contact_us', change
    Note: this gives you scope to have different questions/answers for each of the forms, if necessary.
    Last edited by ridexbuilder; 09-04-2020 at 02:51 PM.

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  10. #20
    Senior Member
    Recaptcha V3.x


    Join Date
    Sep 2009
    Location
    Vancouver, BC, Canada
    Posts
    501
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    JRR     $ 180.00
    Rep Power
    76


    Default Re: Recaptcha V3.x

    I moved the code to around line 104 so the question is just after the Email: entry. Otherwise it is placed at the very bottom and may not be spotted as easily.

Page 2 of 3 First 123 LastLast

Similar Threads

  1. osC reCaptcha
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 12-18-2008, 02:00 PM
  2. osC reCaptcha
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 12-08-2008, 04:55 PM
  3. osC reCaptcha
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 12-08-2008, 03:51 PM
  4. osC reCaptcha
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 12-08-2008, 03:10 PM
  5. osC reCaptcha
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-16-2008, 02:00 PM

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •