Title: ReCaptcha Integration for WordPress
Author: weDevs
Published: <strong>Jeddi 20, 2014</strong>
Last modified: Aqırap 29, 2025

---

Search plugins

![](https://ps.w.org/wp-recaptcha-integration/assets/banner-772x250.png?rev=2337056)

![](https://ps.w.org/wp-recaptcha-integration/assets/icon-256x256.png?rev=2337056)

# ReCaptcha Integration for WordPress

 By [weDevs](https://profiles.wordpress.org/wedevs/)

[Download](https://downloads.wordpress.org/plugin/wp-recaptcha-integration.1.2.8.zip)

 * [Details](https://kaa.wordpress.org/plugins/wp-recaptcha-integration/#description)
 * [Reviews](https://kaa.wordpress.org/plugins/wp-recaptcha-integration/#reviews)
 *  [Installation](https://kaa.wordpress.org/plugins/wp-recaptcha-integration/#installation)
 * [Development](https://kaa.wordpress.org/plugins/wp-recaptcha-integration/#developers)

 [Support](https://wordpress.org/support/plugin/wp-recaptcha-integration/)

## Description

Integrate reCaptcha in your blog. Supports no Captcha as well as old style recaptcha.

Provides of the box integration for signup, login, comment formsand Ninja Forms 
as well as a plugin API for your own integrations.

#### Features:

 * Secures login, signup und comments with a recaptcha.
 * Supports old as well as new reCaptcha.
 * Works together with
    - WP Multisite
    - bbPress
    - BuddyPress
    - AwesomeSupport (thanks to [Julien Liabeuf](http://julienliabeuf.com/) )
    - WooCommerce (Only checkout, registration and login form. Not password reset)
    - [Ninja Forms](http://ninjaforms.com/)
    - cformsII
 * For integration in your self-coded forms see this [wiki article](https://github.com/tareq1988/wp-recaptcha-integration/wiki/Custom-Themes-and-Forms)
   for details.

#### Localizations

 * Brazilian Portuguese (thanks to [Vinícius Ferraz](http://www.viniciusferraz.com))
 * Spanish (thanks to [Ivan Yivoff](https://github.com/yivi))
 * Italian (thanks to [Salaros](http://blog.salaros.com/))
 * German

Latest Files on GitHub: [https://github.com/tareq1988/wp-recaptcha-integration](https://github.com/tareq1988/wp-recaptcha-integration)

#### Compatibility

On a **WP Multisite** you can either activate the plugin network wide or on a single
site.

Activated on a single site everything works as usual.

With network activation entering the API key and setting up where a captcha is required

is up to the network admin. A blog admin can override the API key e.g. when his 
blog is running under his/her own domain name.

#### Known Limitations

 * You can’t have more than one old style reCaptcha on a page. This is a limitiation
   of
    reCaptcha itself. If that’s an issue for you, you should use the no Captcha
   Form.
 * A No Captcha definitely requires client side JavaScript enabled. That’s how it
   does its
    sophisticated bot detection magic. There is no fallback. If your visitor
   does not have JS enabled the captcha test will not let him through.
 * On a **Contact Form 7** when the reCaptcha is disabled (e.g. for logged in users)
   the field
    label will be still visible. This is due to CF7 Shortcode architecture,
   and can’t be fixed.
 * To handle this there is a filter `recaptcha_disabled_html`. You can return a 
   message for your logged-in
    users here. Check out the [GitHub Repo](https://github.com/tareq1988/wp-recaptcha-integration)
   for details.
 * As of version 4.3 CF7 comes with its own recaptcha. Both are supposed to work
   together.
    I you want to keep the WP ReCaptcha functionality, e.g. if you want
   to hide the captcha from known users, leave the integration in the CF7 settings
   unconfigured.
 * Old style reCaptcha does not work together with **WooCommerce**.
 * In **WooCommerce** the reset password form can not be protected by a captcha.
   Woocommerce does
    not fire any action in the lost password form, so there is 
   no way for the plugin to hook in. Take a look at [this thread](https://wordpress.org/support/topic/captcha-not-showing-on-lost-password-page?replies=7)
   for a workaround.
 * Due to a lack of filters there is no (and as far as one can see, there will never
   be)
    support for the **MailPoet** subscription form.

### Plugin API

The plugin offers some filters to allow themes and other plugins to hook in.

See [GitHub-Repo](https://github.com/tareq1988/wp-recaptcha-integration) for details.

## Screenshots

 * [[
 * Plugin Settings (v 1.1.4)
 * [[
 * Ninja Form Integration
 * [[
 * Contact Form 7 Integration

## Installation

First follow the standard [WordPress plugin installation procedere](https://codex.wordpress.org/Managing_Plugins).

Then go to the [Google Recaptcha Site](http://www.google.com/recaptcha), register
your site and enter your API-Keys on the configuration page.

## FAQ

### The login captcha says ‘ERROR: (something somthing)’. What can I do?

If it says ‘Invalid sitekey’ and you checked the ‘Prevent lockout’ option on the
plugin
 settings (it’s on by default) you can log in with an administrator account
and ignore the captcha. If the keys are really invalid, the plugin will let you 
in, so you can set up a new keypair.

When you see “Invalid domain for site key”, then the key is okay in general, but
not for
 your domain. The server can not test this case, so an effective lockout
prevention is not possible.

You will either need one of the following:
 – access to the settings for your sitekey
on [reCaptcha API key administration](https://www.google.com/recaptcha/admin#list)–
access to your WordPress installation (via SSH or FTP) or database access – database
access

**With API key admin**

 1. Look at source code of the login page.
 2. Find the part saying `data-sitekey="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"`
    (
    The XXX-part should be your sitekey.)
 3. Go to the [Google reCaptcha API key administration](https://www.google.com/recaptcha/admin#list)
 4. Find the list entry with the sitekey from step 2
 5. If lockout prevention is enabled you can simply delete the key set up a new one.
    
    If not enter your domain name at “Domains” in a new line and wait up to 30 minutes.

**With FTP Access:**

 1. Add this line of Code somewhere at the end of your theme functions.php:
     add_filter(‘
    wp_recaptcha_required’,’__return_false’);
 2. This will disable the chaptcha everywhere.
 3. Set up a new keypair and test it.
 4. Remove the line above from your theme functions.php.

**If you have Database access**

 1. Execute the following SQL-Commands in your Database:
     DELETE FROM wp_options WHERE
    option_name = ‘recaptcha_publickey’; DELETE FROM wp_options WHERE option_name =‘
    recaptcha_privatekey’;
 2. (Please note that `wp_options` might have a different prefix in your installation.)
 3. After the login you will see a message asking you to set up the API keys.
 4. Set up a new keypair on Google and test it.

**If none of these works for you**

That’s too bad…

### I can’t get it to work with my custom comments form. Will you fix for me?

Nope. I cannot give support on your individual projects for free, no matter how 
many one
 star reviews you will give me. Have a look at the project wiki or find
a WordPress coder.

### Privacy: Will the captcha send the visitors IP address to google?

Yes and no. The captcha verification process, comming into effect after the user
has solved
 the challenge does not require the disclosure of the visitors IP address,
so it is omitted.

But everything related to the displaying of the captcha widget like the challenge
image,
 the JavaScripts and so on is loaded directly from Google and is very likely
to be logged, evaluated and stored forever.

In other words: Google knows which (recaptcha protected) website is accessed from
which IP.

If that’s an issue for you, you better use a self hosted solution.

### Will you support plugin XYZ?

If XYZ stands for a widely used free and OpenSource plugin in active development
with some
 100k+ downloads I will give it a try. Just ask.

If XYZ is some rarely used plugin (about 1k+ active installs or so), I will accept
pull
 requests on github and push it to the WP repository. Please note that in such
cases I will not feel responsible for code maintainance.

### The captcha does not show up. What’s wrong?

On the plugin settings page check out if the option “Disable for known users” is
activated (it is by default).
 Then log out (or open your page in a private browser
window) and try again.

If only the comment form is affected, it is very likely that your Theme does not
use the
 comment_form_defaults filter. (That‘s where I add the captcha HTML, to 
make it appear right before the submit button.) You will have to use another hook,
e.g. `comment_form_after_fields`.

Here is some code that will fix it:

 * Go to (https://gist.github.com/tareq1988/97d7f442ee3e92b7412e)
 * Click the “Download Gist” button
 * Unpack the `.tar.gz` file.
 * Create a zip Archive out of the included file `recaptcha-comment-form-fix.php`
   and name it `recaptcha-comment-form-fix.zip`.
 * Install and activate it like any other WordPress plugin

If the problem still persist, Houston really has a problem, and you are welcome 
to post a support request.

### Disabled submit buttons should be grey! Why aren’t they?

Very likely the Author of your Theme didn’t care that a non functinal form element
should
 look different than a functional one. This how you can overcome that issue:

 * Go to (https://gist.github.com/tareq1988/7cbfb0dab73eb32cb4a2)
 * Click the “Download Gist” button
 * Unpack the `.tar.gz` file.
 * Create a zip Archive out of the included file `grey-out-disabled.php` and name
   it `grey-out-disabled.zip`.
 * Install and activate it like any other WordPress plugin

### I want my visitors to solve only one Captcha and then never again. Is that possible?

Yes. You can store in a session if a captcha was solved, and use the `wp_recaptcha_required`

filter to supress further captchas. See (https://github.com/tareq1988/wp-recaptcha-
integration#real-world-example) for a code example.

### I found a bug. Where should I post it?

I personally prefer GitHub but you can post it in the forum as well. The plugin 
code is here: [GitHub](https://github.com/tareq1988/wp-recaptcha-integration)

### I want to use the latest files. How can I do this?

Use the GitHub Repo rather than the WordPress Plugin. Do as follows:

 1. If you haven’t already done: [Install git](https://help.github.com/articles/set-up-git)
 2. in the console cd into Your ‘wp-content/plugins´ directory
 3. type `git clone git@github.com:tareq1988/wp-recaptcha-integration.git`
 4. If you want to update to the latest files (be careful, might be untested with your
    WP-Version) type `git pull.

Please note that the GitHub repository is more likely to contain unstable and untested
code. Urgent fixes
 concerning stability or security (like crashes, vulnerabilities
and alike) are more likely to be fixed in the official WP plugin repository first.

### I found a bug and fixed it. How can I contribute?

Either post it on [GitHub](https://github.com/tareq1988/wp-recaptcha-integration)
or—if you are working on a forked repository—send me a pull request.

### Will you accept translations?

Since late 2015 WordPress.org offers a plugin translation API. Just use the
 “Translate
this plugin” button in the right sidebar.

## Reviews

![](https://secure.gravatar.com/avatar/725f9817b50947bded0d40d09871d555ef540ab3b58119163921565112add028?
s=60&d=retro&r=g)

### 󠀁[Good plugin](https://wordpress.org/support/topic/good-plugin-7232/)󠁿

 [steve92](https://profiles.wordpress.org/steve92/) Qawıs 8, 2025

Very well.

![](https://secure.gravatar.com/avatar/41b32c134c29e5f19381db99ddebf5b45b4a2dc5f613c0d7d873578982c0cbe9?
s=60&d=retro&r=g)

### 󠀁[Plugin is good but faced issues](https://wordpress.org/support/topic/plugin-is-good-but-faced-issues/)󠁿

 [zubee](https://profiles.wordpress.org/zubee/) Aqırap 18, 2025

Due to the plugin I have faced some malware on my website, and I think you should
update the version. Otherwise it have good features.

![](https://secure.gravatar.com/avatar/14eda4c95d37aa03d30f059c22c96be7340176cd57e61dcca24907ae007daadb?
s=60&d=retro&r=g)

### 󠀁[Thank you](https://wordpress.org/support/topic/thank-you-3675/)󠁿

 [wplogin12](https://profiles.wordpress.org/wplogin12/) Miyzan 20, 2025

Installed first time and is working fine which is the opposite to several other 
I tried. Thank you so much.

![](https://secure.gravatar.com/avatar/40ed8fbfd8cfa5796405e80c0469600d5c066de3eb781d6b72697c1777a11e30?
s=60&d=retro&r=g)

### 󠀁[Update please](https://wordpress.org/support/topic/update-please-41/)󠁿

 [BPhDesigns](https://profiles.wordpress.org/bphdesigns/) Hamal 10, 2025

WP says it needs some security update !!!

![](https://secure.gravatar.com/avatar/217433ebfc480426098e078d8a40a45fc02303507572eddc30e59715081a6991?
s=60&d=retro&r=g)

### 󠀁[Great for Custom Forms](https://wordpress.org/support/topic/great-for-custom-forms/)󠁿

 [moonshdw8](https://profiles.wordpress.org/moonshdw8/) Dáliw 10, 2023

Very easy to use in custom templates.

![](https://secure.gravatar.com/avatar/42f442c9ba80fc192f1e23e3402743e74fb2ee83c7798d7ea217619c6a43c3b7?
s=60&d=retro&r=g)

### 󠀁[Only plugin to add WooCommerce checkout Captcha](https://wordpress.org/support/topic/only-plugin-to-add-woocommerce-checkout-captcha/)󠁿

 [James Jones](https://profiles.wordpress.org/jamesjonesphoenix/) Súmbile 9, 2022

This was the only plugin I could find that added a Captcha to the WooCommerce guest
checkout. All the others either need to be paid for or only add a captcha to the
login and registration pages. I wish this plugin was more visible so I hadn’t wasted
time with inferior offerings. Nice job weDevs and thanks!

 [ Read all 94 reviews ](https://wordpress.org/support/plugin/wp-recaptcha-integration/reviews/)

## Contributors & Developers

“ReCaptcha Integration for WordPress” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ weDevs ](https://profiles.wordpress.org/wedevs/)
 *   [ podpirate ](https://profiles.wordpress.org/podpirate/)
 *   [ Tareq Hasan ](https://profiles.wordpress.org/tareq1988/)
 *   [ Nizam Uddin ](https://profiles.wordpress.org/nizamuddinbabu/)

“ReCaptcha Integration for WordPress” has been translated into 6 locales. Thank 
you to [the translators](https://translate.wordpress.org/projects/wp-plugins/wp-recaptcha-integration/contributors)
for their contributions.

[Translate “ReCaptcha Integration for WordPress” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-recaptcha-integration)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-recaptcha-integration/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-recaptcha-integration/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-recaptcha-integration/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-recaptcha-integration/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### v1.2.8 (29 October, 2025)

 * Fixed potential XSS vulnerability.
 * Added https for recaptcha API URL.

#### v1.2.7 (22 October, 2025)

 * Improved Sanitization and security.

#### v1.2.6 (24 October, 2024)

 * Improved Security

#### v1.2.5 (11 October, 2021)

 * WordPress 5.8.1 compatibility

#### v1.2.4 (6 July, 2020)

 * Removed abandonment notice, plugin is no longer unmaintained.

#### 1.2.1

 * Drop most of Contact form 7 and Ninja Forms support. (Both have their own recaptcha
   now)
 * Register Form compatibility with WooCommerce 3.0+ Thanks to [ywatt](https://github.com/ingomarent)
   and [MrFent37](https://wordpress.org/support/users/mrfent37/)
 * Fix WSOD

#### 1.2.0

 * Support [cformsII](https://wordpress.org/plugins/cforms2/) (thanks to [Bastian Germann](https://github.com/bgermann))
 * Support for Password Reset Protection for older woocommerce Versions [ingomarent](https://github.com/ingomarent)
 * L10n: Czech (thanks to [František Zatloukal](https://github.com/frantisekz))
 * Fix potential PHP Warnngs (thanks to [Gennady Kovshenin](https://github.com/soulseekah))

#### 1.1.11

 * Code: Move plugin main class to include directory
 * Update: Disable 2.0 updates on PHP < 5.4

#### 1.1.10

 * Feature: Changed Contact Form 7 support: As of version 4.3 CF7 comes with its
   own recaptcha. The plugin now just makes sure both captchas work together. It
   also keeps the API keys in sync.
 * Fix: Disable Captcha for logged in users now respects custom roles without read
   capability. (Thanks to [@lainme](https://github.com/lainme))

#### 1.1.9

 * Fix: Layout issues on recaptcha nojs fallback (thanks to [nurupo](https://github.com/nurupo))
 * Metadata: add plugin textdomain

#### 1.1.8

 * Feature: Support AwesomeSupport
 * Feature: Support bbPress new Topics and posts
 * L10n: italian
 * Fix: Layout issue on theme twenty fifteen (recaptcha)

#### 1.1.7

 * Fix: Compatibility with CF7 4.2 User Interface

#### 1.1.6

 * Fix: Skip Ninja Forms required check

#### 1.1.5

 * Feature: Noscript fallback option for noCaptcha
 * Feature: Option for WP 4.2 compatible hook on comment form.
 * Fix: Remove automatic key testing in Backend.
 * L10n: Improved de_DE ([thx @quassy](https://github.com/quassy))
 * L10n: Updated pt_BR ([thx again man](http://www.viniciusferraz.com))

#### 1.1.4

 * Comments: get back to `comment_form_defaults` filter (was introduced in 1.1.3)
 * Fix: Get key option
 * Fix: Key testing return value

#### 1.1.3

 * Comments: use filter `comment_form_submit_button` in WP >= 4.2
 * WooCommerce: Add action listener to `woocommerce_lostpassword_form` (probably
   functional in WC 2.3.8).
 * Introduce `{$feature}recaptcha_html` filters for custom form integration.
 * Introduce filter `wp_recaptcha_cf7_shortcode_wrap`.

#### 1.1.2

 * Fix: Was not possible to uncheck lockout setting.
 * Fix: Potential JS error when ‘Disable Submit Buttons’ was enabled.

#### 1.1.1

 * Filter: `wp_recaptcha_do_scripts` allow disabling recaptcha scripts on certain
   pages.
 * Filter: `wp_recaptcha_print_login_css`, allow disabling login CSS.
 * Fix: Didn’t render with Submit Button Disabling checked
 * Fix: Use `add_query_arg()` to generate recaptcha API URL

#### 1.1.0

 * Feature: Prevent Lockout – Admins can still log in when the API keys are invalid
 * Feature: Customize error message on contact form 7 and ninja forms
 * Filters: add actions `recaptcha_print`, `print_comments_recaptcha` and filters`
   recaptcha_valid`, `recaptcha_error` for custom forms.
 * Redesign: settings page
 * Fix: woocommerce checkout form: fix unnecessary captcha test on new customer 
   registration
 * Fix: settings: testing keys for multiple times
 * Fix: settings: key setup -> cancel button target
 * Fix: settings: test keys only with a nocaptcha

#### 1.0.9

 * Fix: Preserve PHP 5.2 compatibility

#### 1.0.8

 * Feature: Individually set captcha theme in CF7 and Ninja forms (NoCaptcha only,
   old recaptcha not supported)
 * Fix: PHP Warning in settings.
 * Fix: PHP Fatal when check a old reCaptcha.
 * Fix: js error with jQuery not present
 * Fix: woocommerce checkout
 * L10n: add Spanish

#### 1.0.7

 * Fix: Fatal error in settings
 * Fix: messed up HTML comments
 * Code: Put NinjaForms + CF7 handling into singletons

#### 1.0.6

 * Code: separate classes for recaptcha / nocaptcha
 * Code: Class autoloader
 * Fix: avoid double verification
 * Fix: CF7 4.1 validation

#### 1.0.5

 * Add Language option
 * Brasilian Portuguese localization
 * Fix: conditionally load recaptcha lib.
 * Fix: js error after cf7 validation error.

#### 1.0.4

 * Add WooCommerce Support (checkout page)
 * Multisite: protect signup form as well.
 * Reset noCaptcha after ajax calls (enhance compatibility with Comment Form Ajax
   plugin)
 * Fix: incorrect redirect after saving Network settings

#### 1.0.3

 * Add BuddyPress support
 * Action hook for wp_recaptcha_checked
 * NoCaptcha: add non-js fallback.
 * Code: pass `WP_Error` to `wp_die()` when comment captcha fails.
 * Code: Rename filters recaptcha_required > wp_recaptcha_required and recaptcha_disabled_html
   > wp_recaptcha_disabled_html
 * Happy New Year!

#### 1.0.2

 * Feature: option to disable submit button, until the captcha is solved
 * Rearrange comment form (put captcha above submit button)
 * Fix: NoCaptcha did not refresh after submitting invalid ninja form via ajax

#### 1.0.1

 * Fix API Key test
 * Fix theme select

#### 1.0.0

 * Allow more than one no Captcha per page
 * Test captcha verification in Settings
 * Multisite support.

#### 0.9.1

 * Add testing tool for checking the api key.
 * Fixes

#### 0.9.0

Initial Release

## Meta

 *  Version **1.2.8**
 *  Last updated **6 ай ago**
 *  Active installations **10'000+**
 *  WordPress version ** 3.8 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 5.4 or higher **
 *  Languages
 * [Danish](https://da.wordpress.org/plugins/wp-recaptcha-integration/), [English (US)](https://wordpress.org/plugins/wp-recaptcha-integration/),
   [Hungarian](https://hu.wordpress.org/plugins/wp-recaptcha-integration/), [Italian](https://it.wordpress.org/plugins/wp-recaptcha-integration/),
   [Portuguese (Brazil)](https://br.wordpress.org/plugins/wp-recaptcha-integration/),
   [Portuguese (Portugal)](https://pt.wordpress.org/plugins/wp-recaptcha-integration/)
   hám [Russian](https://ru.wordpress.org/plugins/wp-recaptcha-integration/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/wp-recaptcha-integration)
 * Tags
 * [captcha](https://kaa.wordpress.org/plugins/tags/captcha/)[login](https://kaa.wordpress.org/plugins/tags/login/)
   [no captcha](https://kaa.wordpress.org/plugins/tags/no-captcha/)[recaptcha](https://kaa.wordpress.org/plugins/tags/recaptcha/)
   [security](https://kaa.wordpress.org/plugins/tags/security/)
 *  [Advanced View](https://kaa.wordpress.org/plugins/wp-recaptcha-integration/advanced/)

## Ratings

 4.4 out of 5 stars.

 *  [  76 5-star reviews     ](https://wordpress.org/support/plugin/wp-recaptcha-integration/reviews/?filter=5)
 *  [  4 4-star reviews     ](https://wordpress.org/support/plugin/wp-recaptcha-integration/reviews/?filter=4)
 *  [  2 3-star reviews     ](https://wordpress.org/support/plugin/wp-recaptcha-integration/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/wp-recaptcha-integration/reviews/?filter=2)
 *  [  11 1-star reviews     ](https://wordpress.org/support/plugin/wp-recaptcha-integration/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-recaptcha-integration/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-recaptcha-integration/reviews/)

## Contributors

 *   [ weDevs ](https://profiles.wordpress.org/wedevs/)
 *   [ podpirate ](https://profiles.wordpress.org/podpirate/)
 *   [ Tareq Hasan ](https://profiles.wordpress.org/tareq1988/)
 *   [ Nizam Uddin ](https://profiles.wordpress.org/nizamuddinbabu/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-recaptcha-integration/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://tareq.co/donate/)