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 101 to 120 of 135
27 Jan 2020, 11:30 PM
#101
drm1963 avatar

drm1963

New Zenner

Join Date:
Feb 2018
Location:
Tennessee
Posts:
48
Plugin Contributions:
0

non-CAPTCHA and Honey-pots

Have I missed it somewhere?

Where would you go to edit the Number that the word Human shows under?

Where would one go to change the word to a different word other than "HUMAN"

where is the configuration section? I am running 155f and I see no where to configure anything for the noncaptcha

27 Jan 2020, 11:46 PM
#102
drm1963 avatar

drm1963

New Zenner

Join Date:
Feb 2018
Location:
Tennessee
Posts:
48
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Thank you I actually just located the information by going through all of the Configuration settings until I located it.

if I had only looked back to where I obviously asked this same question earlier I would have seen the answer!!

Would it be too hard to make it have its own section in the configuration of the website instead of in the Layout section? If I know how I would do it myself!
Thank you again!!

28 Jan 2020, 2:22 AM
#103
davewest avatar

davewest

Totally Zenned

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

Re: non-CAPTCHA and Honey-pots

drm1963:

Thank you I actually just located the information by going through all of the Configuration settings until I located it.

if I had only looked back to where I obviously asked this same question earlier I would have seen the answer!!

Would it be too hard to make it have its own section in the configuration of the website instead of in the Layout section? If I know how I would do it myself!
Thank you again!!

Not that hard. I have so many configurations that adding another wasn't worth the effort.. especially in a mobile environment the configuration list rolls off the screen.

Dave
Always forward thinking... Lost my mind!

20 Apr 2020, 8:22 PM
#104
nootkan avatar

nootkan

New Zenner

Join Date:
Apr 2006
Location:
Gold River British Columbia Canada
Posts:
9
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Hi and thanks for this mod. I am wondering if the images in the zip folder are supposed to go to root or the images folder?

Nootkan

21 Apr 2020, 4:09 AM
#105
davewest avatar

davewest

Totally Zenned

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

Re: non-CAPTCHA and Honey-pots

nootkan:

Hi and thanks for this mod. I am wondering if the images in the zip folder are supposed to go to root or the images folder?

Files outside of admin folder and includes folder is for demonstration and to help you, not your site so they need not be uploaded anywhere.

Dave
Always forward thinking... Lost my mind!

29 Apr 2020, 2:43 PM
#106
swguy avatar

swguy

Administrator

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

Re: non-CAPTCHA and Honey-pots

Dave, what guidance should we give to 1.5.7 upgraders now that (at least some of) this functionality has been added to the core?

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.

29 Apr 2020, 8:01 PM
#107
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:

Dave, what guidance should we give to 1.5.7 upgraders now that (at least some of) this functionality has been added to the core?

I have 1.5.7 installed and was looking at the code, but haven't had time to run my hacks at it. Looking at the default contact us form for example there is only one input line which should work for most sites, but I would tag it as a email field, bots just can't pass that up.. ```
autocomplete="off"', 'email')


All in all, I like what was done and would suggest NOT installing non-CAPTCHA at all... I'd like to do a down sized version to give the option of a slider test.  Just to give it the full 3 levels of a Honeypot, but really should not need to go that far.  I have yet to see a bot get passed level 1!

Dave
Always forward thinking... Lost my mind!

29 Apr 2020, 8:07 PM
#108
swguy avatar

swguy

Administrator

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

Re: non-CAPTCHA and Honey-pots

Sorry, I should have been more clear. Scenario:

  • Cart is running 1.5.6 plus zenNonCaptcha.
  • User wants to go to 1.5.7.
  • What changes should be made?

Maybe run the uninstall.sql for example?
From the templates where it was installed, remove the email-pot divs and the block with if (SPAM_USE_SLIDER == 'true') ?

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.

29 Apr 2020, 11:02 PM
#109
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:

Sorry, I should have been more clear. Scenario:

  • Cart is running 1.5.6 plus zenNonCaptcha.
  • User wants to go to 1.5.7.
  • What changes should be made?

Maybe run the uninstall.sql for example?
From the templates where it was installed, remove the email-pot divs and the block with if (SPAM_USE_SLIDER == 'true') ?

My Bad.. I would fully remove non-captcha files, I see I missed adding this part. the template files modified should be replaced or edited to match default template files of ZC1.5.7..
remove all three honeypot lines.

<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>

<div class="email-pot">
<p><?php echo HUMAN_TEXT_NOT_DISPLAYED; ?></p>
<?php echo zen_draw_radio_field(SPAM_TEST_USER, 'H1', '', 'id="user-1"') . '<span class="input-group-addon"><i class="fa fa-male fa-2x"></i></span>' . zen_draw_radio_field(SPAM_TEST_USER, 'C2', '', 'id="user-2"') . '<span class="input-group-addon"><i class="fa fa-laptop fa-2x"></i></span>'; ?>
</div>

<?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>
 <?php } ?>

after removing the ADMIN/includes/functions/extra_functions/init_noncaptcha.php file open the uninstall.sql file in a text editor, copy all and paste in the ADMIN Sql patch tool and run..

If its missing..

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';

After all is removed, upgrade to ZC1.5.7 per instructions.

I need to do some looking before I can tell you how to update other template files not part of the default install. The mod I'm updating right now well be part of that process/testing.

Dave
Always forward thinking... Lost my mind!

23 May 2020, 4:50 PM
#110
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

Speaking of 1.5.7 and this mod....

In doing the Accessibility check for 1.5.7 we had noticed what Scott pointed out and dropped the mod out of our test site to not confuse matters.

However, when looking at a 1.5.6c site with the mod installed, we get three accessibility errors with regard to form labels.

Apologies, as I am dumbing this down for those that might not know.

When display:none or display:hidden are used, the browser still processes the data it is not going to display. For instance, if you were to remove the image and header defines for the logo and did display:none for the logoWrapper, the accessibility will take a hit for the items that are not defined even though they will not be displayed. Even a hidden 404 error that might not be picked up without the right tool.

Such is the case with the hidden form input for e-mail-us.```
<div class="email-pot"><label for="email-us">
<input type="email" name="xp0YOfVCAM" id="email-us" title="do not fill in!" placeholder="do not fill in!" autocomplete="off"></div>

The label is started but needs to be finished like```
<div class="email-pot"><label for="email-us">EMail</label>
<input type="email" name="xp0YOfVCAM" id="email-us" title="do not fill in!" placeholder="do not fill in!" autocomplete="off">


Also, the labels are missing on the two radio buttons.

I did not find a github location for this or I would have done a commit to address this.

Thanks for your work on this mod. Several of our clients have been greatly relieved with its use.

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 May 2020, 4:53 PM
#111
swguy avatar

swguy

Administrator

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

Re: non-CAPTCHA and Honey-pots

Bear in mind that some of this functionality is actually built in to 1.5.7, so the relevance of this mod might only be 1.5.6 or prior.

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.

23 May 2020, 10:32 PM
#112
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:

Speaking of 1.5.7 and this mod....

In doing the Accessibility check for 1.5.7 we had noticed what Scott pointed out and dropped the mod out of our test site to not confuse matters.

However, when looking at a 1.5.6c site with the mod installed, we get three accessibility errors with regard to form labels.

Apologies, as I am dumbing this down for those that might not know.

When display:none or display:hidden are used, the browser still processes the data it is not going to display. For instance, if you were to remove the image and header defines for the logo and did display:none for the logoWrapper, the accessibility will take a hit for the items that are not defined even though they will not be displayed. Even a hidden 404 error that might not be picked up without the right tool.

Such is the case with the hidden form input for e-mail-us.```
<div class="email-pot"><label for="email-us">
<input type="email" name="xp0YOfVCAM" id="email-us" title="do not fill in!" placeholder="do not fill in!" autocomplete="off"></div>

> The label is started but needs to be finished like```
<div class="email-pot"><label for="email-us">EMail</label>
<input type="email" name="xp0YOfVCAM" id="email-us" title="do not fill in!" placeholder="do not fill in!" autocomplete="off">
```
> 
> Also, the labels are missing on the two radio buttons.
> 
> I did not find a github location for this or I would have done a commit to address this.
> 
> Thanks for your work on this mod.  Several of our clients have been greatly relieved with its use.
It's just a dumb input field... in past 155 and in 157 it's just an input field with no labels at all...   In my mind, coming from years of reversing coding, code that looks like it belongs can easily get bypassed by human eyes, bots only see input and can't read labels... lest I've not tight my bot to read yet... Unfortunately, I use hidden labels which are label tags that live within the input field.  When moving things over I try to change them so others can follow, but looks like I failed here..  

The radio buttons, level2  is not meant to have labels but the FontAwesome computer/human icons.. This can be changed if you like to labels.  Never should any of them be selected. 

As a side note: while live I find that there is really no need for the fields other then to catch bots that use no url's or email address within any fields listed in the observer.

With ZC1.5.7, there is no need for this mod, and if you wish to clean this one, github is [NonCAPTCHA](https://github.com/davesaddle/NonCAPTCHA)  our post an update to ZC.   I've had issues with accessibility readers, basically I don't play well with them, so I can always use pointers..  :D

Dave
Always forward thinking... Lost my mind!

12 Sep 2020, 10:31 AM
#113
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Installed on 1.5.3. Turned off slider but still getting spam accounts. I did change hidden fields name under layout setting. Is there anything else I need to do to make it work?

12 Sep 2020, 2:30 PM
#114
davewest avatar

davewest

Totally Zenned

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

Re: non-CAPTCHA and Honey-pots

jsarwar:

Installed on 1.5.3. Turned off slider but still getting spam accounts. I did change hidden fields name under layout setting. Is there anything else I need to do to make it work?

Not tested on that old of a cart... comparing ZC151 with 156c, all the pieces are there so I see no reason for it not working! I would need more hints to guess why. like link to site, what other mods so on. What's in the spam account fields!

Dave
Always forward thinking... Lost my mind!

12 Sep 2020, 6:32 PM
#115
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

Sorry for returning on this so late. I read it differently before and reread it with the latest post.

davewest:

The radio buttons, level2 is not meant to have labels but the FontAwesome computer/human icons.. This can be changed if you like to labels. Never should any of them be selected.

Accessibility does not care about a physical/visible label for a radio button but, it does penalize if a reader can't find something to tell the visually impaired what the button is about. Even with FontAwesome icons, the reader would want labels. From the FontAwesome folks.> FontAwesome CDN helps you automate accessibility support more easily so your icons work for the most people possible. You only need turn on a setting, use our simple syntax, and any icons you use will have all of the best practices and manual techniques below applied automatically.Thus, you won't find arial tags for the FontAwesome icons currently used in Zen Cart as the setting is already there.

Meanwhile, until the buttons are converted to FontAwesome icons, sites will take an accessibility hit for no label in the code.

Good article at https://fontawesome.com/how-to-use/on-the-web/other-topics/accessibility talking about labeling being determined by the reason for using the icon.

Bottom line appears to be that everything gets a label even if the label is to tell the reader that the icon is just a decoration.

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

12 Sep 2020, 10:10 PM
#116
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

davewest:

Not tested on that old of a cart... comparing ZC151 with 156c, all the pieces are there so I see no reason for it not working! I would need more hints to guess why. like link to site, what other mods so on. What's in the spam account fields!

FEC module is installed. I noticed download is missing include/modules/create account it has all other files for module folders. I downloaded latest one.

12 Sep 2020, 11:22 PM
#117
davewest avatar

davewest

Totally Zenned

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

Re: non-CAPTCHA and Honey-pots

jsarwar:

FEC module is installed. I noticed download is missing include/modules/create account it has all other files for module folders. I downloaded latest one.

I've not used FEC sense updating from ZC1.3.9 and advancing my template code.. There are no modules in this mod for create_account the existing code triggers the observer ```
$zco_notifier->notify('NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK');


> @dbltoe  
> Accessibility does not care about a physical/visible label for a radio  button but, it does penalize if a reader can't find something to tell  the visually impaired what the button is about.  Even with FontAwesome  icons, the reader would want labels. From the FontAwesome folks.I'm thinking I don't really want text readers speaking about hidden elements... After testing, the radio field can be deleted, bots seem to pass it by, however, they love the slider.. they always pick the last number in the max setting.  Have you tested ZC157 simple input text field?

Dave
Always forward thinking... Lost my mind!

11 Nov 2020, 10:18 PM
#118
swguy avatar

swguy

Administrator

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

Re: non-CAPTCHA and Honey-pots

Dave, I'm wondering about the jscript_nonCaptcha files. Two questions:

a) Does it make sense to just have one copy of the actual javascript logic, and have the individual jscript_ files include it, rather than replicating the same JS in 7 places?

b) It seems like after

var slideCol = document.getElementById("id1");

you should have

if (slideCol != null) {

for folks who set "Use Spam Slider" to False in Admin > Configuration > Layout Settings.

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.

11 Nov 2020, 11:31 PM
#119
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:

Dave, I'm wondering about the jscript_nonCaptcha files. Two questions:

a) Does it make sense to just have one copy of the actual javascript logic, and have the individual jscript_ files include it, rather than replicating the same JS in 7 places?

b) It seems like after

var slideCol = document.getElementById("id1");

you should have

if (slideCol != null) {

for folks who set "Use Spam Slider" to False in Admin > Configuration > Layout Settings.

The script was to mirror a number/word for the user to figure out where they was going. Script does no more then that. With IE it fails all together so maybe a IE kill.. Although a null would be good too.. I used the script with other scripts and just set it out by it self for the mod, With jscript_ wouldn't it load on all pages, not just forms? I did that with colorbox some time back and it loads everywhere.

Some results form past tracking. I'm still using this on my 156 site while setting up 157..

  1. bots was not using the input field at all.
  2. I had the input field set as type email and the auto-fill form plugins was hitting it. Remove type email and that fixed it.
  3. bots would guess at the radio buttons, any selected would be wrong.
  4. bots love the slider and would always pick the default or last number (max number).

With 157, no need for any of this so far. I'm almost done with my edits and started testing, well start deep testing soon..

I'm moving on, but I know some of you have to support older installs. The life of web masters.. I no longer have anything to do with Windoze or a need to hack it... IE decided slider should be as they wish it and not as all the others went with... Thus I couldn't get the script to have an IE response.

Dave
Always forward thinking... Lost my mind!

12 Nov 2020, 12:47 AM
#120
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: non-CAPTCHA and Honey-pots

davewest:

With jscript_ wouldn't it load on all pages, not just forms?
If loaded in /includes/templates/TEMPLATENAME/jscript/jscript_xxxxxx.js (or.php) then yes.
But if loaded in /includes/modules/pages/PAGENAME/jscript_xxxxxxx.js(or .php) then only loads when ?main_page=PAGENAME

Ref: https://docs.zen-cart.com/user/template/javascript/#page-specific-jscript-files

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.