If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / non-CAPTCHA and Honey-pots

non-CAPTCHA and Honey-pots

Started by davewest on 15 Jun 2018, 3:53 AM · Views: 51,806

Results 121 to 135 of 135
12 Nov 2020, 1:02 PM
#121
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

non-CAPTCHA and Honey-pots

I'd be happy to do the changes I suggested - just let me know.

That Software Guy. My Store: Zen Cart Support
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.

12 Nov 2020, 3:07 PM
#122
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: non-CAPTCHA and Honey-pots

swguy:

I'd be happy to do the changes I suggested - just let me know.

Please do. With IE going down a different path with HTML5 and not reading the response from the slider the same as Mozilla the script needs help. I don't have any MS OS any more for VM, used the disks to scare away the birds. I can't test the script.

Dave
Always forward thinking... Lost my mind!

14 Nov 2020, 1:26 AM
#123
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
433
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

I have made non-CAPTCHA and Honey-pots work for IE v10 and IE v11 on zc156a. The slider is a bit ugly but functions. I need to put up a notice for IE users to upgrade to something else as IE 11 supports ends this year.

non-CAPTCHA and Honey-pots is currently in my dev env on 157a and it works. I only use non-CAPTCHA and Honey-pots for creating accounts and contact-us pages.

I can post my changes if they might be of use.
[Attachment no longer available] Initial slide in IE 11
[Attachment no longer available] Button pressed and value changed in IE 11


environment Dev: Zen Cart 157a; Apache 2.4.46; PHP 7.4.9; MySQL 5.7.31; Windows 10

OldNGrey
ZC222 PHP 8.4.27
MySQL 11.8.5-MariaDB

14 Nov 2020, 2:49 PM
#124
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: non-CAPTCHA and Honey-pots

OldNGrey:

I have made non-CAPTCHA and Honey-pots work for IE v10 and IE v11 on zc156a. The slider is a bit ugly but functions. I need to put up a notice for IE users to upgrade to something else as IE 11 supports ends this year.

non-CAPTCHA and Honey-pots is currently in my dev env on 157a and it works. I only use non-CAPTCHA and Honey-pots for creating accounts and contact-us pages.

I can post my changes if they might be of use.
[Attachment no longer available] Initial slide in IE 11
[Attachment no longer available] Button pressed and value changed in IE 11


environment Dev: Zen Cart 157a; Apache 2.4.46; PHP 7.4.9; MySQL 5.7.31; Windows 10

CAPTCHA is built into ZC157x and has no need for any CAPTCHA add-ons... eye testing nor honey.. so all you're adding is frustration to your customers..

Allot of users refuse to upgrade to a HTML5 enabled browser. All they see of the slider is a text input field.

Post your script. Does it work on FF too?

Dave
Always forward thinking... Lost my mind!

15 Nov 2020, 3:38 AM
#125
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
433
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

The slider displays in FF, Chrome, Edge and IE 11 & 10.

<script type="text/javascript">
$(document).ready(function () {
  
var slideCol = document.getElementById("id1");
var y = document.getElementById("f");

y.innerHTML = slideCol.value; // Display the default slider value
slideCol.onchange = displayCol;
// Update the current slider value (each time you drag the slider handle)
slideCol.oninput = displayCol;
function displayCol() {
    y.innerHTML = this.value;
	    if (this.value == "<?php echo SPAM_TEST; ?>") {
      y.innerHTML = "<?php echo SPAM_ANSWER; ?>";
    }     
	}
});

</script> 

OldNGrey
ZC222 PHP 8.4.27
MySQL 11.8.5-MariaDB

15 Nov 2020, 10:56 PM
#126
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: non-CAPTCHA and Honey-pots

OldNGrey:

The slider displays in FF, Chrome, Edge and IE 11 & 10.

So basically you named the function and then hit both the onchange and oninput events... It works, most of the responses are at a micro second... based on focus or order. The input event comes before the corresponding change event if any... However, I beleave all but IE respond to both onchange and oninput. IE response is to the onchange event. So you could just use the onchange event, but that leads to other problems with other browsers.

For example, this is from an article in Mozilla..

The onchange event occurs when a control loses the input focus and its value has been modified since gaining focus.

As shown in the quote above, onchange should always fire after oninput, so the fact that Firefox waits for the range slider to lose focus before firing the event (for both mouse and keyboard) seems to be the correct behaviour. Chrome does not wait until the control is unfocused when using the keyboard, but it does so with the mouse.

IE11, of course, is completely wrong on two counts: It doesn’t recognize oninput when applied to a range slider and it responds to onchange as if it was oninput, firing the event immediately instead of waiting until the slider stops moving or loses focus.
Maybe a suggestion such as below; This would not support IE8 and below, but only IE9 and above are HTML5 browsers.

$(document).ready(function () {
  
var slideCol = document.getElementById("id1");
var y = document.getElementById("f");

var ie = 'ActiveXObject' in window;

y.innerHTML = slideCol.value; // Display the default slider value

if (ie) {
slideCol.onchange = displayCol;  // Update slider value (IE)
} else {
slideCol.oninput = displayCol;  // Update slider value (Mozilla)
}

function displayCol() {
    y.innerHTML = this.value;
        if (this.value == "20") {
      y.innerHTML = "Humen";
    }     
    }
});

Dave
Always forward thinking... Lost my mind!

4 Jun 2021, 6:23 AM
#127
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Just wanted to say thanks for this plugin, store got hit with a pretty clever script that created accounts, placed items in the cart and then checked out via eway, had over 1000 attempted transactions in a couple of hours. Added this and all stopped, is a great temp fix until I get time to upgrade to 1.5.7c.

25 Mar 2022, 11:41 PM
#128
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

I'm using Zen Cart 1.5.7d and the built in spam prevention doesn't seem to be working. I'm still getting a lot of spam messages through the contact us page.
Is there some setting or code that needs to be changed to make it work?

26 Mar 2022, 12:12 AM
#129
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: non-CAPTCHA and Honey-pots

The question is... What files on your site are different from a standard 1.5.7d install.

What template are you using? A store-bought template might not have the proper code imbedded in their files.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

26 Mar 2022, 1:05 AM
#130
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

I'm using the default responsive classic template, no changes to the contact us template file.

Actually, it seems to be working as intended. I did some testing by making the hidden field visible and then sending some messages putting something in the antispam field and other times leaving it empty. I did not get any of the messages when I put something in the antispam field.

So it seems the bots just somehow figured it out.

Can someone suggest any change to the code to fool the bots and make it work?

26 Mar 2022, 1:30 AM
#131
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: non-CAPTCHA and Honey-pots

In many cases, it's not a bot but a third-world script kiddie being paid to sit at the screen and paste data into the fields.

You might try adding lat9's Access Blocker for that additional help. https://www.zen-cart.com/downloads.php?do=file&id=2237

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 May 2022, 8:07 AM
#132
siilike1232 avatar

siilike1232

New Zenner

Join Date:
Mar 2011
Posts:
56
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Hi,
I have a store in 3 languages. How can I get the question etc on 3 languages?

Thanks,
Ingrid

16 May 2022, 2:30 PM
#133
siilike1232 avatar

siilike1232

New Zenner

Join Date:
Mar 2011
Posts:
56
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Hi,
I have run into another issue :(
My Cuntact Us page displays an error:
Sorry, is your subject correct? Our system requires a minimum of 2 characters. Please try again.

Any ideas?

Ingrid

6 Dec 2023, 8:08 AM
#134
cookiemonster avatar

cookiemonster

Zen Follower

Join Date:
Apr 2013
Location:
Wisconsin
Posts:
134
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Can this slider non-CAPTCHA be used with 1.5.8a, or are there plans to update it for that version? I loved it with 1.5.7, but it doesn't seem to work with 1.5.8a. I used reCAPTCHA instead, but that is sending through some spam, unfortunately, and the non-CAPTCHA slider seemed to work 100% with the past versions. Thanks for any insight.

16 Sep 2025, 10:58 AM
#135
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Is there an updated version for 2.0?