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
  #1  
Old 02-07-2017, 12:39 PM
 
PhilJ PhilJ is offline
 

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

Default reCAPTCHA for X-Cart Classic

Helps prevent bot activity on...
  1. Register account form (register.php)
  2. Login form and login​ popup form (login.php)
  3. Password recovery form (help.php?section=Password_Recovery)
  4. Customer reviews form (product pages, basic and advanced modules)
  5. Send to friend form (product pages)
  6. Contact us form (help.php?section=contactus&mode=update)
  7. Newsletter subscribe form (news.php)
  8. Ask a question about this product popup form (popup_ask.php)
  9. Provider account register form (provider/register.php) [NEW, OPTIONAL]
  10. Affiliate account register form (partner/register.php) [NEW, OPTIONAL]
* Bonus additional simple honeypot option for the customer register account form [NEW, OPTIONAL]
* Bonus additional simple honeypot option for the contact us form [NEW, OPTIONAL]
  • Free service from Google, which includes daily pass and fail stats
  • Light or dark theme for the captcha block
  • Align the captcha block left, center or right
  • Multi-language capable
  • v4.6.x - v4.7.x
  • Easy to install - if you would like us to install it for you, (v4.6.x + only), click here
FAQ - https://developers.google.com/recaptcha/docs/faq

Support - https://support.google.com/recaptcha/?hl=en#6081880


More Info

(COMPATIBLE WITH PHP v7.x)


Changelog

9th Dec 2019 - Additional simple honeypots for the customer registration and contact us forms.

10th Apr 2019 - Option to add to Provider and Affiliate registration forms, CSS updated to downsize the reCAPTCHA box on mobiles, new loading spinners, langs.txt file added
29th Mar 2019 - modules/reCAPTCHA/recaptchalib.php updated again to prevent PHP warning again. Thanks to Paul. install.txt tidied up a little.
28th Feb 2019 - Only modules/reCAPTCHA/recaptchalib.php updated to prevent PHP warning from occurring.
28th Jan 2019 - Update, login popup improved, added to 'ask a question about this product' popup, tested with v4.7.10.
11th Nov 2017 - Update, additional module settings to enable / disable reCAPTCHAs (see below), now works in login popup, v4.4.x - v4.5.x patch included.
10th Oct 2017 - New version, allows for multiple reCAPTCHAs on same page, customer reviews (basic and advanced modules), password recovery page, newsletter subscription page supported
29th Jul 2017 - Now works with login.php
4th Apr 2017 - CURL version if 'file_get_contents' is disabled, also included (thanks to Nathaniël)
7th Mar 2017 - Now works with 'Send to Friend' form
20th Feb 2017 - Fix
7th Feb 2017 - Initial Release


__________________
xcartmods.co.uk
Reply With Quote

The following 7 users thank PhilJ for this useful post:
A_R (08-28-2018), chamberinternet (03-08-2017), elmirage001 (02-07-2017), Katsu (07-26-2018), maineiac (09-04-2019), nfc5382 (11-11-2017), susilosaja (08-08-2017)
  #2  
Old 02-07-2017, 08:43 PM
 
mattstyle2 mattstyle2 is offline
 

Advanced Member
  
Join Date: Apr 2015
Posts: 54
 

Default Re: reCAPTCHA for X-Cart Classic

blah, I just spent $150 on the xcart marketplace one and installed it already with your reboot template..
__________________
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

The following user thanks mattstyle2 for this useful post:
PhilJ (02-07-2017)
  #3  
Old 02-07-2017, 08:56 PM
 
PhilJ PhilJ is offline
 

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

Default Re: reCAPTCHA for X-Cart Classic

oh, I wasn't aware there was such a mod for X-Cart Classic on the marketplace.

The module you purchased is better, as it takes care of all forms, albeit more expensive.

I'm currently only seeing dodgy emails mainly via register.php, but that may change over time, in which case this mod will be updated accordingly.
__________________
xcartmods.co.uk
Reply With Quote
  #4  
Old 02-07-2017, 09:35 PM
 
mattstyle2 mattstyle2 is offline
 

Advanced Member
  
Join Date: Apr 2015
Posts: 54
 

Default Re: reCAPTCHA for X-Cart Classic

yes! well you should def add it to the 'add a review' section..

I installed the reCaptcha on the XC4.1.12 site a few months ago just for the reviews.. an easy way to do it is to replace the code for the current image verification software!

alright back to modding the reboot theme for the new site.. nice theme by the way..

-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

The following user thanks mattstyle2 for this useful post:
PhilJ (02-07-2017)
  #5  
Old 02-07-2017, 09:44 PM
 
PhilJ PhilJ is offline
 

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

Default Re: reCAPTCHA for X-Cart Classic

Quote:
I installed the reCaptcha on the XC4.1.12 site a few months ago just for the reviews

Yes, that would make sense with the standard customer reviews module in X-Cart Gold. Don't forget you can always use...

Code:
{if $login} ... {else} ... {/if}
__________________
xcartmods.co.uk
Reply With Quote
  #6  
Old 02-08-2017, 08:37 PM
 
Hallsons Hallsons is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 84
 

Default Re: reCAPTCHA for X-Cart Classic

I haven't had any problems with bogus registrations so much as bogus product reviews. I hate to change it to requiring login but that's probably my next step.
__________________
Chris Wilson
4.7.10 (after 9 years with 4.1.12)
CDSEO Pro
Reply With Quote
  #7  
Old 02-09-2017, 01:21 PM
 
Hallsons Hallsons is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 84
 

Default Re: reCAPTCHA for X-Cart Classic

Actually I double checked and the bogus registrations were among those making fake reviews. So it seems like they are getting around the registration necessary for reviews and registering first and reviewing next.

My product id 52 and 1352 are the only ones being spammed in the reviews.
__________________
Chris Wilson
4.7.10 (after 9 years with 4.1.12)
CDSEO Pro
Reply With Quote
  #8  
Old 02-12-2017, 09:09 PM
 
mattstyle2 mattstyle2 is offline
 

Advanced Member
  
Join Date: Apr 2015
Posts: 54
 

Default Re: reCAPTCHA for X-Cart Classic

Quote:
Originally Posted by PhilJ
Yes, that would make sense with the standard customer reviews module in X-Cart Gold. Don't forget you can always use...

Code:
{if $login} ... {else} ... {/if}
oh using BSCE's slow review system. not so slow after I memcached it..

anyways, switching to the XC advanced reviews for the new site.

we manually review them too.. just making it easier for customers. alot easier to click a button instead of filling out the recapcha numbers.
__________________
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
  #9  
Old 02-14-2017, 02:31 PM
  peggyr's Avatar 
peggyr peggyr is offline
 

X-Adept
  
Join Date: Dec 2005
Posts: 631
 

Default Re: reCAPTCHA for X-Cart Classic

I just installed reCAPTCHA for X-Cart Classic on my 4.6.6 Gold. I looked at the X-Cart Marketplace add-on, but I don't enable most of the forms it added reCaptcha to, and Phil's install for registrations and contactus was very easy, and worked immediately. I had been getting bogus registrations and contact us forms (5-10) daily for about 3 weeks.

THANK YOU PHIL!
__________________
X-Cart GP 4.7.12 | XCARTMODS.CO.UK reBOOT (reDUX)4.7.12.8 | Live
IONOS Hosting | Linux | PHP 7.4.33 | MySQL 5.7
Reply With Quote

The following user thanks peggyr for this useful post:
PhilJ (02-15-2017)
  #10  
Old 02-20-2017, 10:01 AM
 
PhilJ PhilJ is offline
 

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

Default Re: reCAPTCHA for X-Cart Classic

Important fix, so please update your stores...

Step 4) In include/register.php

BEFORE...

Code:
// Check address book if (isset($address_book)) {

INSERT...

Code:
// 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
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
elmirage001 (02-20-2017)
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

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 09:52 PM.

   

 
X-Cart forums © 2001-2020