Page 8 of 14 FirstFirst ... 678910 ... LastLast
Results 71 to 80 of 134
  1. #71
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: non-CAPTCHA and Honey-pots

    Quote Originally Posted by davewest View Post
    One thing I've also been tracking, bots tend to pick the default value in the input field first. The default value is used to position the slider at startup. This value '25' should not be used as your test number.
    If you're accepting PRs, I'd like to submit a change to generate these values randomly rather than use static strings and numbers.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #72
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: non-CAPTCHA and Honey-pots

    Quote Originally Posted by swguy View Post
    If you're accepting PRs, I'd like to submit a change to generate these values randomly rather than use static strings and numbers.
    I have some corrections to do before I upload to github, once I do I'll open it for PR's and post back here.
    Dave
    Always forward thinking... Lost my mind!

  3. #73
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: non-CAPTCHA and Honey-pots

    Quote Originally Posted by davewest View Post
    I have some corrections to do before I upload to github, once I do I'll open it for PR's and post back here.
    After adding some suggested edits and increasing the regex line to include some other common strings, its back up on github here..

    I have a feeling the regex string may not work below php7x, if you have issues, let me know.. Regex line was created using a regex editor, then tested in a debugger until I got it working the way I wanted.

    looking for
    ' www. cowboygeek.com http:// www. cowboygeek.com mailto:[email protected] [email protected] www. url-with-querystring.com/?url=has-querystring'
    Dave
    Always forward thinking... Lost my mind!

  4. #74
    Join Date
    Feb 2019
    Posts
    18
    Plugin Contributions
    0

    Default Re: non-CAPTCHA and Honey-pots

    This is a great script! Thank you. I have one issue tho.. I only need the slider on the contact form as I'm getting tons of contact form spam. No spam registrations, etc.

    So I uploaded:
    /admin/includes/functions/extra_functions/init_noncaptcha.php
    /includes/classes/observers/auto.non_captcha_observer.php
    /includes/templates/responsive_classic/css/stylesheet_noncaptcha.css
    /includes/templates/responsive_classic/templates/tpl_contact_us_default.php
    /includes/modules/pages/contact_us/jscript_nonCaptcha.php


    And in auto.non_captcha_observer.php I edited this:
    PHP Code:
        public function __construct()
        {
            
    $this->attach($this, [
                
    'NOTIFY_NONCAPTCHA_CHECK',
                
    'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK',  <-- I REMOVED THIS LINE.
                
    'NOTIFY_CONTACT_US_CAPTCHA_CHECK',
                
    'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK', <-- AND I REMOVED THIS LINE.
            ]);
        } 
    Does that sound good? Any other suggestions?

  5. #75
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: non-CAPTCHA and Honey-pots

    Quote Originally Posted by ChrisLane View Post
    This is a great script! Thank you. I have one issue tho.. I only need the slider on the contact form as I'm getting tons of contact form spam. No spam registrations, etc.

    So I uploaded:
    /admin/includes/functions/extra_functions/init_noncaptcha.php
    /includes/classes/observers/auto.non_captcha_observer.php
    /includes/templates/responsive_classic/css/stylesheet_noncaptcha.css
    /includes/templates/responsive_classic/templates/tpl_contact_us_default.php
    /includes/modules/pages/contact_us/jscript_nonCaptcha.php


    And in auto.non_captcha_observer.php I edited this:
    PHP Code:
        public function __construct()
        {
            
    $this->attach($this, [
                
    'NOTIFY_NONCAPTCHA_CHECK',
                
    'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK',  <-- I REMOVED THIS LINE.
                
    'NOTIFY_CONTACT_US_CAPTCHA_CHECK',
                
    'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK', <-- AND I REMOVED THIS LINE.
            ]);
        } 
    Does that sound good? Any other suggestions?
    Not really a good idea.. turns off all test by removing those lines.

    To turn off slider for all, theirs a switch for that, to turn off just some of them.. comment out the slider test line and the code chunk in the template file. This well keep the other fields actively working for you.

    Commenting out lines makes it easy to reactivate things later on.

    includes/classes/observers/auto.non_captcha_observer.php
    comment out
    Code:
    $this->testSliderFields('create_account');
    includes/templates/responsive_classic/templates/tpl_modules_create_account.php
    Code:
    <?php if (SPAM_USE_SLIDER == 'true') { ?>
    <div class="slidecontainer">
    <p><?php echo HUMAN_TEXT_DISPLAYED; ?></p>
      <?php echo zen_draw_input_field(SPAM_TEST_IQ, '', ' min="0" max="50" value="25" class="slider" id="id1"', 'range'); ?>
    <br /><br />
    <span>Value:</span> <span id="f" style="font-weight:bold;color:red"></span>
     </div>
    
     <script>
    $(document).ready(function () {
      
    var slideCol = document.getElementById("id1");
    var y = document.getElementById("f");
    y.innerHTML = slideCol.value; // Display the default slider value
    
    // Update the current slider value (each time you drag the slider handle)
    slideCol.oninput = function() {
        y.innerHTML = this.value;
        if (this.value == "<?php echo SPAM_TEST; ?>") {
          y.innerHTML = "<?php echo SPAM_ANSWER; ?>";
        }
      }
    });
    //--></script> 
     <?php } ?>
    Dave
    Always forward thinking... Lost my mind!

  6. #76
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: non-CAPTCHA and Honey-pots

    Dave, if you could put this mod on Github there are a few ideas I'd like to submit as PRs.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #77
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default Re: non-CAPTCHA and Honey-pots


    Zen Cart and it's community are the best!!

  8. #78
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: non-CAPTCHA and Honey-pots

    Let me know if you have problems with PR's, still learning in's and outs of github...

    FYI.. with my site version I placed code to do logs when and where the honey pot is triggered. As such, the regex string is catching URL and email addresses in fields where they shouldn't be. Which is killing bots before the other fields are checked..
    Dave
    Always forward thinking... Lost my mind!

  9. #79
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: non-CAPTCHA and Honey-pots

    Please let me know (by PM) the tells you're seeing. I'm collecting hints to add to a spam filter contribution to augment what zenNonCAPTCHA does.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  10. #80
    Join Date
    Mar 2019
    Location
    Montreal
    Posts
    39
    Plugin Contributions
    0

    Default Re: non-CAPTCHA and Honey-pots

    http://myembroideryhaven.com
    v156a, php 7.1.32
    Column layout grid
    Langage Currency Links in Headers
    Edit_orders 4.3.5
    Canada Post shipping module
    Flexible footer Menu
    Simplified Social Share
    Ip blocker
    Ultimate SEO Urls
    Newsletter Subscribe
    Reward Point Full Suite
    Recover Sales Cart

    1st question: would my version of php cause issues with this mod?

    2nd question: Dave are you using a mod for newsletter?

    I'm asking these questions because i'm having a hard time making the mod work on my site and I really need it to work on my website with a mod for newsletter only subscriber. I saw Dr Byte's post referring to adding older files that are no longer in zc, however, I saw a "newsletteronly" class on your tpl_subscribe_default.php and thought maybe it would work if I used the same newsletteronly mod. Right now when I go live with zenNon-Captcha, I get the not a human yet message when creating an account and emails don't get added to the list for the newsletter subscription.

 

 
Page 8 of 14 FirstFirst ... 678910 ... LastLast

Similar Threads

  1. v139h Contact Us Page Honey Pot Implementation On v1.39h
    By lindasdd in forum General Questions
    Replies: 1
    Last Post: 24 Sep 2015, 12:54 PM
  2. CAPTCHA Error: Session not started. The CAPTCHA cannot be used!
    By betheone in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 17 Jan 2014, 05:39 AM
  3. Best Captcha mod for FEC and login pages?
    By split63 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 1 Jul 2010, 04:52 AM
  4. CAPTCHA AND Contact Us change
    By pcnoobie in forum General Questions
    Replies: 1
    Last Post: 8 Jan 2009, 09:19 AM
  5. Replies: 13
    Last Post: 2 Jun 2008, 03:29 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR