Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

reCAPTCHA for X-Cart Classic

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #11  
Old 03-07-2017, 06:46 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: reCAPTCHA for X-Cart Classic

7th Mar 2017 - Now works with 'Send to Friend' form.
__________________
xcartmods.co.uk
Reply With Quote
  #12  
Old 04-03-2017, 07:32 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: reCAPTCHA for X-Cart Classic

4th Apr 2017 - CURL version if 'file_get_contents' is disabled, also included (thanks to Nathaniël)
__________________
xcartmods.co.uk
Reply With Quote

The following 2 users thank PhilJ for this useful post:
cherie (04-04-2017), herber@wirehub.nl (04-09-2017)
  #13  
Old 07-29-2017, 02:43 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: reCAPTCHA for X-Cart Classic

29th Jul 2017 - Now works with login.php
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
elmirage001 (07-30-2017)
  #14  
Old 08-08-2017, 08:29 AM
 
susilosaja susilosaja is offline
 

Advanced Member
  
Join Date: Feb 2013
Posts: 88
 

Default Re: reCAPTCHA for X-Cart Classic

Thanks for the module phil. Been getting thousands of spam registration.

Questions :
1. On google admin site, there's the setting "Security Preference", which consists of 3 choices : Easiest for user, Most Secure, and one in the middle. What is the recommended setting?

2. I notice sometimes the recaptcha asked the user to click some images, multiple times, for extra verification. Won't this be too much for a real customer?
__________________
Susilo
X-Cart 4.7.6 Gold Plus
Template : Ultra Responsive Template
Search module : Cloud Search
PHP 7
Reply With Quote
  #15  
Old 08-08-2017, 09:42 PM
 
susilosaja susilosaja is offline
 

Advanced Member
  
Join Date: Feb 2013
Posts: 88
 

Default Re: reCAPTCHA for X-Cart Classic

I noticed that when we disabled the recaptcha module, but still left the "enabled" setting in that module checked, it still check for the recaptcha. The user is then unable to pass the recaptcha check, even though there's no recaptcha on the form.

So on the php file, I add the checking whether the module is active. For example in register.php :

// reCAPTCHA
if ($current_area == 'C' && $main != 'checkout' && $config['reCAPTCHA']['reCAPTCHA_enabled'] == "Y" && $config['reCAPTCHA']['reCAPTCHA_site_key'] && $config['reCAPTCHA']['reCAPTCHA_secret_key']) {
include $xcart_dir . '/modules/reCAPTCHA/recaptcha_check_register.php';
}
// /reCAPTCHA

I change it to :

// reCAPTCHA
if ($current_area == 'C' && $main != 'checkout' &&
!empty($active_modules["reCAPTCHA"]) && $config['reCAPTCHA']['reCAPTCHA_enabled'] == "Y" &&
$config['reCAPTCHA']['reCAPTCHA_site_key'] && $config['reCAPTCHA']['reCAPTCHA_secret_key'])
{
include $xcart_dir . '/modules/reCAPTCHA/recaptcha_check_register.php';
}
// /reCAPTCHA
__________________
Susilo
X-Cart 4.7.6 Gold Plus
Template : Ultra Responsive Template
Search module : Cloud Search
PHP 7
Reply With Quote
  #16  
Old 10-09-2017, 12:05 PM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: reCAPTCHA for X-Cart Classic

I installed the Recaptcha mod a while ago and I don't see anywhere to make it active when a customer leaves a product review. It only seems to work on Registration page, contact us, and sand to a friend by default, how did you all get it onto the advanced customer reviews page?

This is on a 4.6.0 classic store.
Thanks.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #17  
Old 10-09-2017, 08:38 PM
 
susilosaja susilosaja is offline
 

Advanced Member
  
Join Date: Feb 2013
Posts: 88
 

Default Re: reCAPTCHA for X-Cart Classic

I can't remember exactly, so I may be wrong here. I dont think the recaptcha module provide verification for reviews. The Image Verification module has it though. It's what I use for reviews page.
__________________
Susilo
X-Cart 4.7.6 Gold Plus
Template : Ultra Responsive Template
Search module : Cloud Search
PHP 7
Reply With Quote
  #18  
Old 10-10-2017, 11:44 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: reCAPTCHA for X-Cart Classic

Updated, reworked. Quite a few changes, see install.txt

- On template pages, the upper form JS is no longer required. JS goes in skin/common_files/customer/service_js.tpl
- Can now have multiple reCAPTCHAs on same page, which is handy if you have your own custom forms
- Now works with customer reviews, basic and advanced modules - DEMO
- Now works with password recovery page - DEMO
- Now works with newsletter subscription page - DEMO

DOWNLOAD

I suggest reuploading the files and going through the install again. No need to re-patch the database.

Captchas are not necessary for modal popup forms... ie. login / product ask a question etc. JS is required for modals and the mod detects if JS is enabled.
__________________
xcartmods.co.uk
Reply With Quote

The following 3 users thank PhilJ for this useful post:
cherie (10-10-2017), elmirage001 (10-10-2017), ITVV (10-10-2017)
  #19  
Old 10-19-2017, 05:52 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: reCAPTCHA for X-Cart Classic

Very nice, thanks for updating that, was tired of reviews full of spam.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote

The following user thanks keystone for this useful post:
PhilJ (11-03-2017)
  #20  
Old 10-19-2017, 08:41 AM
 
mattstyle2 mattstyle2 is offline
 

Advanced Member
  
Join Date: Apr 2015
Posts: 54
 

Default Re: reCAPTCHA for X-Cart Classic

Any way to hide this until it detects a user spamming? X number of requests within a time period. Such as 2 or 3 requests for form submission within a minute.

Matt
__________________
4.7.7.
php7.1, AWS RDS database
memcache, reboot theme AWS EC2 load balancer, 2 c5.large instances CDSEO Shop By Filters,
AC onepage checkout and checkout tools,
altercart cash rewards, bcse DPM for paypal
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:35 PM.

   

 
X-Cart forums © 2001-2020