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
Location: UK
Posts: 3,519
 

Default reCAPTCHA for X-Cart Classic

Prevents bots on...
  1. Register account form (register.php)
  2. Login form (login.php)
  3. Password recovery page (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 subscription page (news.php)
Easy enough to add to your own forms.
  • 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
  • Free!
FAQ - https://developers.google.com/recaptcha/docs/faq

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

Changelog

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

DOWNLOAD


__________________
xcartmods.co.uk


Reply With Quote

The following 6 users thank PhilJ for this useful post:
A_R (08-28-2018), chamberinternet (03-08-2017), elmirage001 (02-07-2017), Katsu (07-26-2018), 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: 52
 

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
Location: UK
Posts: 3,519
 

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

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
Location: UK
Posts: 3,519
 

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

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.6 (after 9 years with 4.1.12)
AlteredCart One Page Checkout
AlteredCart Payments
CDSEO Pro
Reply With Quote
  #7  
Old 02-09-2017, 01:21 PM
 
Hallsons Hallsons is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 81
 

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.6 (after 9 years with 4.1.12)
AlteredCart One Page Checkout
AlteredCart Payments
CDSEO Pro
Reply With Quote
  #8  
Old 02-12-2017, 09:09 PM
 
mattstyle2 mattstyle2 is offline
 

Advanced Member
  
Join Date: Apr 2015
Posts: 52
 

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 peggyr is offline
 

eXpert
  
Join Date: Dec 2005
Posts: 268
 

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!
__________________
HPAdmin

4.6.6 Classic - Dec 2014
Smack Digital CDSEO Pro 2.0
Smack Digital ezUpsell
Smack Digital Rich Snippets for X-cart
Smack Digital Duplicate Meta Data
BCSE Mobile App
X-Cartmods UK Recaptcha Nov 2017 update
www.shipmyorders.com NV and TN Fulfillment Centers
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
Location: UK
Posts: 3,519
 

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 02:22 PM.

   

 
X-Cart forums © 2001-2018