PHP Classes

WordPress Recaptcha Integration: Plugin to integrate Recaptcha to protect forms

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 105 This week: 2All time: 9,696 This week: 96Up
Version License PHP version Categories
recaptcha-lite 1.0The PHP License5PHP 5, Content management, Security
Description 

Author

This package provides a WordPress Plugin to integrate Recaptcha to protect forms.

It provides a plugin that registers in a WordPress installation to help preventing security attacks such as accesses using bots, brute-force attacks, spam, and abuse in general.

Currently it can be used in WordPress, Buddy Press and Woocommerce forms for login, registration, lost password recovery, reset password, comment form, and order checkout.

Innovation Award
PHP Programming Innovation award nominee
April 2020
Number 8
Recaptcha is a secure solution to help Web applications verify if the current user submitting a form is a real human user.

This package provides a plugin to automatically make Recaptcha based controls appear in different types of forms of WordPress and other applications built on top of WordPress like Woocommerce and BuddyPress.

Manuel Lemos
Picture of Malik Naik
  Performance   Level  
Name: Malik Naik is available for providing paid consulting. Contact Malik Naik .
Classes: 9 packages by
Country: India India
Age: 25
All time rank: 3536233 in India India
Week rank: 52 Up4 in India India Up
Innovation award
Innovation award
Nominee: 5x

Example

<?php

/**
 * Plugin Name: reCAPTCHA Lite
 * Plugin URI: http://wordpress.org/plugins/recaptcha-lite
 * Description: Integrate the Google's reCAPTCHA v2 Checkbox or v3 into the forms and protect your site from bots, brute-force attacks, spam, and abuse.
 * Version: 1.0
 * Author: Malik Naik
 * Author URI: http://maliknaik.me/
 * License: GNU General Public License v3
 * License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
 * Text Domain: recaptcha-lite
 * Domain Path: /languages
 */

// Make sure we don't expose any info if called directly
defined('ABSPATH') || exit;

require_once
'autoload.php';

use
RecaptchaLite\RecaptchaLite;
use
RecaptchaLite\Factory\RecaptchaFactory;

new
RecaptchaLite;
$component = RecaptchaFactory::create(get_option('grl_recaptcha_version', ''));
$component->attach();



Details

=== reCAPTCHA Lite === Contributors: maliknaik16 Tags: google, bots, protect, secure, captcha, v3, woocommerce, v2, form, login, register, reset, lost, buddypress, lite, block, no-interaction Requires at least: 4.4 Tested up to: 5.4 Requires PHP: 5.6 Stable tag: 1.0 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html

Integrate the Google's reCAPTCHA Google's reCAPTCHA v2 Checkbox or v3 into the forms and protect your site from bots, brute-force attacks, spam, and abuse.

== Description == The reCAPTCHA Lite protects your WordPress site from the bots, brute-force attacks, spam, and abuse. This plugin comes with the support of reCAPTCHA v3 and v2 Checkbox. The reCAPTCHA v3 allows users to navigate site without solving "I'm not a robot" challenges.

You can integrate the Google's reCAPTCHA in the following forms:

  • Login Form
  • Registration Form
  • Lost Password Form
  • Reset Password Form
  • Comment Form
  • WooCommerce Forms
  • Buddy Press Signup Form

If you are using the Google reCAPTCHA v3 then the following actions list shows the action names that will be used to hit the Google's reCAPTCHA API endpoint during validation. For more information on actions checkout out the official documentation.

  • login_form
  • register_form
  • lost_password_form
  • reset_password_form
  • comment_form
  • woo_register_form
  • woo_order_checkout
  • woo_login_form
  • buddypress_signup

== Installation == Download and extract this plugin to the /wp-content/plugins/ folder and activate the plugin from Plugins menu in WordPress Admin Dashboard.

== Frequently Asked Questions == = What is Google reCAPTCHA v3? = The reCAPTCHA v3 is a new version of the Google's reCAPTCHA that allows users to navigate the sites without having to solve "I'm not a robot" challenge. = I'm getting "ERROR for site owner" error, what should I do? = Make sure that you are using the right site key and secret key of the reCAPTCHA type. For example, if you use site key, and secret key of the reCAPTCHA v2 then these keys won't work for reCAPTCHA v3.

== Screenshots == 1. reCAPTCHA Lite - Settings 2. reCAPTCHA Lite - Login form with reCAPTCHA v3 3. reCAPTCHA Lite - Action name malformed error 4. reCAPTCHA Lite - Buddy press signup form 5. reCAPTCHA Lite - WooCommerce Login and Register Forms with Dark theme 6. reCAPTCHA Lite - WooCommerce Checkout Form 7. reCAPTCHA Lite - WooCommerce Captcha error on checkout

== Changelog == = 1.0 = * First Release


Screenshots  
  • screenshots/banner-772x250.png
  • screenshots/icon-128x128.png
  • screenshots/screenshot-1.png
  • screenshots/screenshot-2.png
  • screenshots/screenshot-3.png
  • screenshots/screenshot-4.png
  • screenshots/screenshot-5.png
  • screenshots/screenshot-6.png
  • screenshots/screenshot-7.png
  Files folder image Files  
File Role Description
Files folder imageassets (2 directories)
Files folder imagesrc (2 files, 2 directories)
Accessible without login Plain text file autoload.php Aux. Auxiliary script
Accessible without login Plain text file readme.txt Doc. Documentation
Accessible without login Plain text file recaptcha-lite.php Example Example script
Accessible without login Plain text file uninstall.php Aux. Auxiliary script

  Files folder image Files  /  assets  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (1 file)

  Files folder image Files  /  assets  /  css  
File Role Description
  Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files  /  assets  /  js  
File Role Description
  Accessible without login Plain text file script.js Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageComponents (2 files)
Files folder imageFactory (1 file)
  Plain text file RecaptchaBase.php Class Class source
  Plain text file RecaptchaLite.php Class Class source

  Files folder image Files  /  src  /  Components  
File Role Description
  Plain text file V2Checkbox.php Class Class source
  Plain text file V3.php Class Class source

  Files folder image Files  /  src  /  Factory  
File Role Description
  Plain text file RecaptchaFactory.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:105
This week:2
All time:9,696
This week:96Up