Captcha for WooCommerce

 

“Completely Automated Public Turing test to tell Computers and Humans Apart”.

I have developed a free WordPress plugin to implement captcha for WooCommerce forms for websites that use Captcha by BestWebSoft.

I use Captcha by BestWebSoft on this website to thwart automated bots that attempt to register and use WooCommerce forms. Unfortunately, with the BestWebSoft captcha solution the ability to use Captcha on WooCommerce forms is a paid feature.

Being creative, I developed and released a WordPress plugin to freely implement captcha for WooCommerce forms for websites that use this captcha. It was relatively simple to embed the BestWebSoft captcha solution inside a new wrapper plugin and use a custom form interface to easily implement a free WooCommerce interface. This interface operates on WooCommerce login, registration, checkout payment and password reset forms.

No changes are made to Captcha by BestWebSoft. This plugin links to your existing Captcha by BestWebsoft version if you have it installed, or it will use a GPLv2 embedded version that is bundled with this plugin if you do not have it installed.

WooCommerce is NOT required for my plugin to work. My Captcha for WooCommerce plugin will install and activate correctly on WordPress sites without WooCommerce. Use the Captcha settings found in the WordPress administrator menu to configure captcha for WordPress.

The code I used was all released under a GPLv2 license. As such, the GPLv2 version of Captcha by BestWebSoft and my plugin are free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.

I would like to credit Agbonghama Collins for the original idea to implement Google’s Captcha into WooCommerce and give thanks to BestWebSoft for developing a fine Captcha solution.

Note: Around August 2017, support and development of the Captcha plugin is no longer performed by BestWebSoft. Please see the Captcha community support thread on WordPress.org.

If you wish to run the BestWebSoft solution you may want to download and install Captcha for WooCommerce 2.2.1. This will install the embedded Captcha by BestWebSoft version 4.3.1. Please also see FAQ question 3 below.

For WooCommerce users and others, I have adapted my plugin to operate and embed the new Captcha version 4.3.3. My plugin version numbers were renamed to maintain consistency with the embedded Captcha version.
If you like my work, please send a small donation.

Donate
=== Captcha for WooCommerce ===
Contributors: William Miles
Donate link: https://www.bronzeart.ca/shop/donation/
Tags: woocommerce, form, security, login, registration, checkout, payment, comments, spam, captcha, recaptcha, spammers, bot, security, bots
Requires at least: 4.0
Tested up to: 4.8.1
Stable tag: 4.3.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Protect WooCommerce login, registration, checkout payment and password reset form against spam when using Captcha by BestWebSoft.

== Description ==

A simple plugin for adding CAPTCHA to the WooCommerce login, registration, checkout payment and password reset form to protect against spam.

This plugin integrates WooCommerce with Captcha by BestWebSoft.

### Features

> * Compatible with WooCommerce:
> * Login form
> * Register form
> * Lost password form
> * Checkout billing form

* Option to set the WooCommerce CAPTCHA error message.
* Option to set the WooCommerce CAPTCHA form text label.
* No need to reference remote servers for captcha evaluation.
* No Javascript is required for captcha evaluation.
* Includes a GPLv2 version of Captcha by BestWebSoft

== Installation ==

Install Captcha for WooCommerce just like any other WordPress plugin.

Either:
1. Download the plugin zip file from my website (www.bronzeart.ca/plugins/woocommerce-captcha.4.3.3.zip).
2. Extract the zip file.
3. Upload the ‘woocommerce-captcha’ folder to your WordPress plugins directory on your webserver.
4. Log in to your WordPress site as an administrator.
5. Go to the Plugins – Installed Plugins menu list.
6. Activate the Captcha for Woocommerce plugin.

Or:
Navigate to your WordPress “Plugins” page, inside of your WordPress dashboard, and follow these instructions:

1. In the search field enter **Captcha for WooCommerce**. Click “Search Plugins”.
2. Select **Captcha for WooCommerce** and click either “Details” or “Install Now”.
3. Once installed, click “Activate”.

== Frequently Asked Questions ==

  1. = Do I need to install Captcha by BestWebSoft? =

    No. This plugin already includes a GPLv2 version of Captcha by BestWebSoft.

  2. = I already have Captcha by BestWebSoft installed. Do I need to remove it? =

    No. If Captcha by BestWebSoft is installed when you activate this plugin then this plugin will use it and your captcha should still work. However, if the Captcha for WooCommerce does not work then see the following question.

  3. = I installed or upgraded Captcha by BestWebSoft and my Captcha for WooCommerce no longer works. What should I do? =

    Remove or deactivate the version from BestWebSoft that you installed or upgraded. This plugin will now use the embedded GPLv2 version of Captcha by BestWebSoft.

    You can always check the Captcha for WooCommerce settings to see if the plugin is using the embedded version of Captcha. If the setting for ‘Using Embedded Version’ does NOT show a release number then the plugin is linking to the installed version of Captcha.

  4. = But I want or need the latest features in Captcha by BestWebSoft and your embedded version is old. What should I do? =

    Contact me through my [website] (https://www.bronzeart.ca/contact). Ask that I integrate Captcha for WooCommerce with the current release of Captcha by BestWebSoft. It would help if you offered a [donation] (https://www.bronzeart.ca/shop/donation/).

    Or, deactivate this plugin and then install and activate the latest Captcha by BestWebSoft. Then, reactivate this plugin. The Captcha for WooCommerce plugin will then use the new Captcha by BestWebSoft. Sadly, if Captcha for WooCommerce no longer works, please see the previous question.

  5. = Do I need WooCommerce for this plugin to work? =

    No. If you don’t have WooCommerce installed then this plugin is equivalent to the Captcha plugin on WordPress. If you don’t have this Captcha installed then the embedded version will be activated for WordPress forms.

  6. = Do I need to purchase the Pro version of Captcha by BestWebSoft to use the WooCommerce features? =

    No. Instead, if you find this free plugin useful, send me a [donation] (https://www.bronzeart.ca/shop/donation/).

  7. = I have already paid for the Pro version of Captcha by BestWebSoft. Will your Captcha for WooCommerce still work? =

    If you have the Pro version installed then you don’t need this plugin. The Pro version of Captcha by BestWebSoft allows you to implement the captcha in WooCommerce forms.

  8. = Can I use the captcha on WordPress comments or non-WooCommerce forms? =

    Yes. This plugin contains a fully functional release of Captcha by BestWebSoft. Refer to the BestWebSoft documentation.

  9. = But the captcha doesn’t work. What should I do? =

    The captcha is being generated with Captcha by BestWebSoft. If you are having problems with the captcha then please refer to the BestWebSoft documentation.

  10. = The CAPTCHA text label is not positioned properly in my WooCommerce forms. Can I style it? =

    Yes. Add CSS to your theme. Here is the styling I use.

    .wc-captcha {
        padding: 1.618em 0;
    }
    
    .wc-captcha label {
        cursor: pointer;
        display: block;
        font-weight: 700;
        margin: 0 0 1em;
    }
    
  11. = I see a 404 popup message when I submit the form. =

    Do not use or set the BestWebSoft Captcha option to ‘Show CAPTCHA after the end of the page loading’. This option invokes AJAX to rewrite the Captcha. This gives a 404 alert error if the page is cached with a plugin such as W3 Total Cache. This failure typically occurs after 24 hours when the WordPress nonce expires.

    It is recommended that WooCommerce account pages or cart or checkout pages never be cached.

  12. = The CAPTCHA can be broken. I still get spam. =

    Unfortunately, captcha is not perfect. Computers are smart today, as are bots.
    [I’m Not a Human: Breaking Google Recaptcha] (https://www.youtube.com/watch?v=8iMU9HbJ7Wo)

  13. = I can’t log in to my website! It’s all your fault! =

    That’s not likely true, but …

    1. To deactivate the plugin, log in to your webserver.
    2. Navigate to the wordpress/wp-content/plugins directory.
    3. Rename or delete the ‘woocommerce-captcha’ plugin directory.

== Screenshots ==

1. Plugin general settings.
2. CAPTCHA in WooCommerce login form
3. CAPTCHA in WooCommerce password reset form
4. CAPTCHA in WooCommerce checkout payment form
5. CAPTCHA error in WooCommerce login
6. WooCommerce enable register setting.
7. CAPTCHA in WooCommerce register form

== Changelog ==

= 4.3.3 =
* Set release numbers to match embedded Captcha version.
* Includes Captcha v4.3.3 as a bundled distribution.
* Update message to indicate when installed Captcha is incompatible.
* Implement new custom form function calls for Captcha v4.3.3.

= 2.2.1 =
* Dynamically determine embedded BestWebSoft version when plugin activated.

= 2.2 =
* Includes Captcha by BestWebSoft v4.3.1 as a bundled distribution.

= 2.1.1 =
* Remove Ncr code in login.php

= 2.1 =
* Includes Captcha by BestWebSoft v4.3.0 as a bundled distribution.

= 2.0 =
* Includes Captcha by BestWebSoft v4.2.9 as a bundled distribution.

= 1.0 =
* first release version

Captcha for WooCommerce

Captcha for WooCommerce

Captcha for WooCommerce

Captcha for WooCommerce

Captcha for WooCommerce

Captcha for WooCommerce

Captcha for WooCommerce