=== Codenitive CAPTCHA Security ===
Contributors: gswebdev
Tags: captcha, recaptcha, turnstile, woocommerce, contact-form-7
Requires at least: 6.3
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add Google reCAPTCHA v2 and Cloudflare Turnstile protection to WordPress, WooCommerce and Contact Form 7 forms.

== Description ==

Protect WordPress, WooCommerce and Contact Form 7 forms with Google reCAPTCHA v2 Checkbox and Cloudflare Turnstile.

Supported providers:

* Google reCAPTCHA v2 Checkbox
* Cloudflare Turnstile

Protect forms including:

* WordPress Login
* WordPress Registration
* WordPress Lost Password
* WordPress Comments
* WooCommerce Login
* WooCommerce Registration
* WooCommerce Checkout
* WooCommerce Product Reviews
* Contact Form 7

== Features ==

* Google reCAPTCHA v2 Checkbox support
* Cloudflare Turnstile support
* WordPress Login, Registration, Lost Password and Comments protection
* WooCommerce Login, Registration, Checkout and Product Reviews protection
* Contact Form 7 integration
* Hide CAPTCHA for logged-in users
* Prevent spam, bots and brute-force attacks
* Easy configuration via the settings panel
* Compatible with most themes and caching plugins

== Installation ==

1. Upload the plugin folder `codenitive-captcha` to `/wp-content/plugins`, or install it via the Plugins screen in WordPress.
2. Activate the plugin through the **Plugins** menu.
3. Go to **Settings → Codenitive CAPTCHA Security**.
4. Choose your preferred CAPTCHA provider:
   * Google reCAPTCHA v2 Checkbox
   * Cloudflare Turnstile
5. Enter your Site Key and Secret Key.
6. Select the forms you want to protect.
7. Save your settings.

== Usage ==

After activating the plugin:

1. Go to **Settings → Codenitive CAPTCHA Security**
2. Select Google reCAPTCHA or Cloudflare Turnstile.
3. Enter the Site Key and Secret Key.
4. Enable protection on the desired forms.
5. Save your settings.

== Privacy ==

This plugin connects to external CAPTCHA services to help prevent spam and abuse.
This plugin only sends data to the selected CAPTCHA provider when a protected form is displayed or submitted.

Supported services:

* Google reCAPTCHA
* Cloudflare Turnstile

== External Services Used ==

This plugin uses the following third-party services:

* Google reCAPTCHA v2
- Purpose: Prevent spam and automated abuse during form submissions (e.g. login, registration, checkout).
- Data Sent: When a user submits a protected form, their browser data (such as IP address, user-agent, mouse movements, and interaction behavior) may be sent to Google to determine if the user is human.
- When Sent: Only when a user interacts with a reCAPTCHA-protected form on the site.
- Service Provider: Google LLC
- Terms of Service: https://policies.google.com/terms
- Privacy Policy: https://policies.google.com/privacy

* Cloudflare Turnstile
- Purpose: Prevent spam and automated abuse.
- Data Sent: User IP address and browser information may be sent to Cloudflare.
- When Sent: When a user interacts with a Turnstile-protected form.
- Service Provider: Cloudflare, Inc.
- Terms of Service: https://www.cloudflare.com/website-terms/
- Privacy Policy: https://www.cloudflare.com/privacypolicy/

== Frequently Asked Questions ==

= Does this plugin support Cloudflare Turnstile? =

Yes. You can select Cloudflare Turnstile as your preferred CAPTCHA provider from the plugin settings page.

= Which CAPTCHA providers are supported? =

* Google reCAPTCHA v2 Checkbox
* Cloudflare Turnstile

= What if CAPTCHA does not show? =

Make sure you've entered valid Site Key and Secret Key for your selected CAPTCHA provider and that the form is enabled in the plugin settings.

= Does this plugin work with WooCommerce? =

Yes! It supports login, registration, and checkout forms in WooCommerce.

= Does this plugin work with Contact Form 7? =

Yes.

1. Go to **Settings → Codenitive CAPTCHA Security**.
2. Open the Options tab.
3. Enable Contact Form 7 protection.
4. Add the `[codenit_recaptcha]` shortcode to your Contact Form 7 form.
5. Save the settings.

= Can I customize where CAPTCHA appears? =

Yes, you can enable or disable CAPTCHA per form via the settings page.
Go to **Settings → Codenitive CAPTCHA Security** to configure your CAPTCHA providers and form settings.

= Where can I generate my reCAPTCHA Site and Secret Keys? =

https://www.google.com/recaptcha/admin/create

= Where can I generate Cloudflare Turnstile Site and Secret Keys? =

https://dash.cloudflare.com/?to=/:account/turnstile

== Screenshots ==

1. Plugin settings page with Google reCAPTCHA keys.
2. Cloudflare Turnstile settings page.
3. CAPTCHA protection on WordPress and WooCommerce forms.
4. Contact Form 7 integration using the `[codenit_recaptcha]` shortcode.

== Changelog ==

= 1.0.0 =
* Initial release.
* Google reCAPTCHA v2.
* Integrates with WordPress and WooCommerce forms.

= 1.0.4 =
* Added Contact Form 7 integration.

= 1.0.5 =
* Fixed login CAPTCHA validation.

= 1.1.0 =
* Added Cloudflare Turnstile support.
* Added Turnstile settings tab with site key and secret key fields.
* Added server-side Turnstile verification using Cloudflare Siteverify.
* Updated frontend rendering to avoid duplicate CAPTCHA script/widget rendering.

== Upgrade Notice ==

= 1.1.0 =
Adds Cloudflare Turnstile support and improves CAPTCHA rendering.

== Feedback ==

If you like this plugin, please leave us a 5-star review:
https://wordpress.org/support/plugin/codenitive-captcha/reviews/#new-post

Need help or have a feature request? Use the Support Forum:
https://wordpress.org/support/plugin/codenitive-captcha/
