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 1 to 20 of 135
15 Jun 2018, 3:53 AM
#1
davewest avatar

davewest

Totally Zenned

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

non-CAPTCHA and Honey-pots

Creative ways of defeating SPAM!

Its a never ending war to stop advertisers from wasting our time while maintaining the ability to communicate with our guests and users. You may never stop it without affecting user feedback.

I was adding to my blog about coding Honey-pots and some of the ideas behind it. Things I use on my own site. We keep talking about the idea of honey-pots and non-CAPTCHA style of tests, but only CAPTCHA was ever created as a mod!

Instead of discussing what one can code, I've created a simple mod for two honey-pots and a non-Completely Automated Public Turing test to tell Computers and Humans Apart or non-CAPTCHA. The auto-install of 9 Configurations in Layout Settings is to aid in non-coding changing of field names and settings for the slider.

Based on ZC1.5.5f

What's in it..
An update to the hidden input field should_be_empty.
A new hidden set of two radio fields that also tests as empty or false.
A non-hidden user adjusted answer slider, the non-CAPTCHA part of this mod.

I wanted to Keep It Stupid Simple with the least amount of added or affected pages. In use on my contact us page.

DOWNLOAD: zenNonCAPTCHA

Dave
Always forward thinking... Lost my mind!

18 Jun 2018, 7:53 PM
#2
davewest avatar

davewest

Totally Zenned

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

Re: non-CAPTCHA and Honey-pots

I just sent in another update. Based on some more testing with the added variable '$userspam' it wasn't getting hit without adding more checks.

Changed to '$antiSpam .= ' the DOT EQUAL makes the same existing checks for both fields work without adding more code.

For best results, after install, change the three field names in Admin, Configuration, Layout Settings From Should_be_ to something else.

Dave
Always forward thinking... Lost my mind!

20 Jul 2018, 8:16 PM
#3
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
745
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Is there any reason why the form would submit even if the slider is incorrect? I installed it on our site, but it still submits the form even though the slider doesn't say HUMAN.

  • Jeff
20 Jul 2018, 9:47 PM
#4
davewest avatar

davewest

Totally Zenned

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

Re: non-CAPTCHA and Honey-pots

Jeff_Mash:

Is there any reason why the form would submit even if the slider is incorrect? I installed it on our site, but it still submits the form even though the slider doesn't say HUMAN.

If its not installed correctly or the header page has no antiSpam checks, then it would not work...

Dave
Always forward thinking... Lost my mind!

16 Nov 2018, 6:37 PM
#5
lynbor avatar

lynbor

New Zenner

Join Date:
Sep 2004
Location:
Iowa
Posts:
93
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

A very nice and unfortunately needed addition to ZC!

I'm running ZC 1.5.5b and the installation was smooth as silk into my free responsive template that I'm using.

I did notice one thing that I think is minor but felt compelled to bring it up. After installing I was doing some testing and If the slider is set correctly by the human AND any or all the other traps are monkeyed with the submission appears to have been successful to the user. However, nothing is sent. So the system says thank you and your message has been sent when in reality, it was not sent because it failed due to something being in the fields that should have been untouched.

If the slider bar is not set to HUMAM then the system gives the "you're not human enough yet" error message and it's clear that your message did not get sent.

Not sure if this is by design or if I have something that I must tweak.

elltx.com ELLTX Computer Services
hostingwithservice.com Designing Results Hosting Services
designingresults.com Designing Results Web Design Services

16 Nov 2018, 7:19 PM
#6
davewest avatar

davewest

Totally Zenned

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

Re: non-CAPTCHA and Honey-pots

lynbor:

Not sure if this is by design or if I have something that I must tweak.

As designed honey-pots are set so bots get the success page if they fill in the field and move on, spam is not sent. The input field and radio fields should never be seen my humans. both fields have info that they should not be used... The slider is not using the word 'Human' as the test, bots see text input field or numbers, but I've not had one guess right yet, even my own bot! With 1 correct answer out of possible 50 is what the bots are up agents.

Dave
Always forward thinking... Lost my mind!

16 Nov 2018, 9:09 PM
#7
lynbor avatar

lynbor

New Zenner

Join Date:
Sep 2004
Location:
Iowa
Posts:
93
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

davewest:

As designed honey-pots are set so bots get the success page if they fill in the field and move on, spam is not sent. The input field and radio fields should never be seen my humans. both fields have info that they should not be used... The slider is not using the word 'Human' as the test, bots see text input field or numbers, but I've not had one guess right yet, even my own bot! With 1 correct answer out of possible 50 is what the bots are up agents.

Ah, so the answer is that the human isn't supposed to be seeing those fields but is so I need to try and figure out how to hide them so they only see the slider.

elltx.com ELLTX Computer Services
hostingwithservice.com Designing Results Hosting Services
designingresults.com Designing Results Web Design Services

16 Nov 2018, 9:30 PM
#8
lynbor avatar

lynbor

New Zenner

Join Date:
Sep 2004
Location:
Iowa
Posts:
93
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Bingo!

Added

.email-pot {
visibility: hidden;
}

to the bottom of the CSS file and that hid what needed to be hidden from the HUMAN. Hope that is correct.

elltx.com ELLTX Computer Services
hostingwithservice.com Designing Results Hosting Services
designingresults.com Designing Results Web Design Services

16 Nov 2018, 11:11 PM
#9
davewest avatar

davewest

Totally Zenned

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

Re: non-CAPTCHA and Honey-pots

lynbor:

Bingo!
to the bottom of the CSS file and that hid what needed to be hidden from the HUMAN. Hope that is correct.

I've had that in my site main css for so long, I've missed adding it to the mod...

to hit all the devices out there try this..

.email-pot {position:absolute; visibility:hidden; display:none;}

Some folk position the field off screen to hide it, however, that makes the screen jump when you hit submit or other buttons. In testing I comment out the class so I can be the bot.. I'll have to send in an update...
Thanks for the catch..

Dave
Always forward thinking... Lost my mind!

23 Dec 2018, 3:31 PM
#10
one_tall_man avatar

one_tall_man

Zen Follower

Join Date:
Feb 2009
Posts:
125
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Dave,

Thank you so much for this captcha! I was apprehensive about using Google's recaptcha, but came across your mod and loved it.:D

My install: was Vanilla 1.3.9h, now 1.5.5b, Apache 2.4, PHP 7.0.6, MySQL 5.5.8 64b, Windows 7 64b, 8GB RAM, i3 3.3gHz
Modules: [Payment=Paypal] [Shipping=Canada Post 1.5.3 merged] [nonCAPTCHA]

23 Dec 2018, 4:44 PM
#11
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

So, I take it we're not using display:none as it will also not display it to the bots? Would be nice to not have the big blank areas of the page.

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

23 Dec 2018, 6:05 PM
#12
davewest avatar

davewest

Totally Zenned

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

Re: non-CAPTCHA and Honey-pots

dbltoe:

So, I take it we're not using display:none as it will also not display it to the bots? Would be nice to not have the big blank areas of the page.

inline styles are easy to spot or code into bots to spot... I've not had any blank areas using the responsive classic template or a plain html page..

<div class="email-pot"> 
<label for="email-us"></label> 
<?php echo zen_draw_input_field(SPAM_TEST_TEXT, '', ' id="email-us" title="do not fill in!" placeholder="do not fill in!" autocomplete="off"', 'email'); ?> 
</div>

The last update should have place this into the css file..

.email-pot {position:absolute; visibility:hidden; display:none;}

The entire DIV is hidden! Pointers or link please...

@one tall man
Thanks

Dave
Always forward thinking... Lost my mind!

24 Dec 2018, 5:44 PM
#13
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

No problem with the execution. Just wondering why the double use.

visibility:hidden, by design, makes the item invisible but leaves the space the item would need if not hidden.

display:none, by design, makes the item AND the space it would occupy go away. Cleaner method.

But, my question was whether one or the other would affect the way a bot sees the page. Google will actually look at items even if set to display none.

Is using either the visibility or display inadvertently aiding the bots by eliminating the listing intended to trap them in the first place?

If not, perhaps display:none is the ticket.

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

24 Dec 2018, 8:05 PM
#14
davewest avatar

davewest

Totally Zenned

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

Re: non-CAPTCHA and Honey-pots

dbltoe:

No problem with the execution. Just wondering why the double use.

visibility:hidden, by design, makes the item invisible but leaves the space the item would need if not hidden.

display:none, by design, makes the item AND the space it would occupy go away. Cleaner method.

But, my question was whether one or the other would affect the way a bot sees the page. Google will actually look at items even if set to display none.

Is using either the visibility or display inadvertently aiding the bots by eliminating the listing intended to trap them in the first place?

If not, perhaps display:none is the ticket.

See, I'm not an css expert... but I just did a search and figured it out... The info, groups discussing honey pots came up with display:none, visibility: hidden, opacity: 0 and position off screen. In FireFox positioning off screen makes the page jump to the top.. I see now Visibility hidden, would not be that grate ether... I thought I read something about IOS, Android needing one or the other... but not finding it now. My bad for not Googling css tricks on it better.

Bots are blind so hiding the input field is to keep humans from entering info and killing the form. Which is a good method to test the form. Bots are looking for form elements in HTML rendered pages to fill in. If I know the field name 'should_be_empty' I can add that field to be bypassed. I like to keep the fields looking the same as my other fields to keep the html clean and harder to find the hidden fields. Which is why I went with the field names editable in admin.

When I finish upgrading things, I'll do an update and just do the display:none; or is there a better way!

Dave
Always forward thinking... Lost my mind!

25 Dec 2018, 6:41 AM
#15
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

As my Welsh-Irish Grandfather used to say, "Max Nix.":P

display:none is "more purdy" as long as it doesn't alert the bots, I'm happy with that.

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

22 Jan 2019, 3:59 PM
#16
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

TNX Dave,

Was holding out installing in our zc154 site until after the upgrade to 156a.

The bots have the honeypot used in the Pica-Fluor templates figured out and I couldn't wait any longer. Both on contact-us and create account.

The 3 hits of contact-us, post, success was less than 10 seconds for the bots.
Zero since installing this.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

1 Feb 2019, 11:58 AM
#17
sweetmade avatar

sweetmade

New Zenner

Join Date:
Jan 2008
Posts:
22
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

hi i am sorry if this has been answered before but i have been sitting up all night trying to fix issues on my site since installing this plugin, is there a way to remove it?

1 Feb 2019, 12:21 PM
#18
sweetmade avatar

sweetmade

New Zenner

Join Date:
Jan 2008
Posts:
22
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

i keep getting an error : You don't seem to be Human yet!

1 Feb 2019, 4:02 PM
#19
davewest avatar

davewest

Totally Zenned

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

Re: non-CAPTCHA and Honey-pots

sweetmade:

hi i am sorry if this has been answered before but i have been sitting up all night trying to fix issues on my site since installing this plugin, is there a way to remove it?
Looks like I totally messed setting up a uninstaller... delete the admin extra function init_noncaptcha.php file before running the sql or it would install again.. Replace all edited files with there original unedited files.

in admin tools, install sql patches, paste the following and run to remove.

DELETE FROM configuration WHERE configuration_key = 'SPAM_TEST_TEXT';
DELETE FROM configuration WHERE configuration_key = 'SPAM_TEST_USER';
DELETE FROM configuration WHERE configuration_key = 'SPAM_TEST_IQ';
DELETE FROM configuration WHERE configuration_key = 'SPAM_TEST';
DELETE FROM configuration WHERE configuration_key = 'HUMAN_TEXT_DISPLAYED';
DELETE FROM configuration WHERE configuration_key = 'HUMAN_TEXT_NOT_DISPLAYED';
DELETE FROM configuration WHERE configuration_key = 'SPAM_ERROR';
DELETE FROM configuration WHERE configuration_key = 'SPAM_USE_SLIDER';
DELETE FROM configuration WHERE configuration_key = 'SPAM_ANSWER';

sweetmade:

i keep getting an error : You don't seem to be Human yet!
The human test is based on a number set in SPAM_TEST.. Must be a number, words would fail. The number must be between the minimum and maximum set in the input field. I would suggest not using the max number for the test. Bots seem to pick the max number.

Some things that would help us help you would be a link to the site if possible, version of zen cart and php? Are there any error logs?

Dave
Always forward thinking... Lost my mind!

12 Feb 2019, 12:15 AM
#20
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Just grateful for this mod... thank you davewest!