🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Payment Fraud Shield Premium Add-on Setup Guide

Updated 8 min read Gravity Forms Payments & Pricing
On this page
  1. Step 1: Install and Activate Your License
  2. Step 2: Review the Protection Rules
  3. Step 3: Set Protection per Form
  4. Step 4: Add the Optional Turnstile Security Check
  5. Step 5: Allowlist, Messages and Alerts
  6. Step 6: Watch the Activity Log
  7. How Fraud Shield Protects Your Gateway
  8. Not Included in Version 1.0
  9. Developer Filters
  10. Troubleshooting & FAQ
  11. A real customer was blocked.
  12. All visitors seem to share one IP address.
  13. Nothing appears in the log.
  14. Does Fraud Shield replace reCAPTCHA or Turnstile fields?
  15. Is customer data stored?
  16. Resource Hub

Card-testing bots submit payment forms again and again with stolen card numbers and tiny amounts. Each attempt can cost a gateway fee and pushes up your decline rate. The Gravity Forms Payment Fraud Shield Premium Add-on checks every submission of your payment forms before the payment add-on charges the card. Suspicious attempts are stopped inside Gravity Forms and never reach your payment gateway, while real customers see a friendly message and, only when something looks risky, a security check.

This guide covers installation, the protection rules, per-form settings, the optional Cloudflare Turnstile challenge, the activity log, the limits of version 1.0 and troubleshooting.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher
  • Gravity Forms: Version 2.7 or higher
  • Payment add-on: At least one form with an active payment feed (for example Stripe, PayPal, Square, Authorize.Net or a GravityExtra gateway)
  • Cloudflare Turnstile (optional): A free Cloudflare account to create a site key and secret key
  • GravityExtra license: The add-on installed, activated and licensed with an active GravityExtra license key

Step 1: Install and Activate Your License

  1. In WordPress go to Plugins → Add New → Upload Plugin, upload the add-on ZIP file and click Activate.
  2. Go to Forms → Settings → Fraud Shield and activate your license key in the Gravity Extra License section.
  3. Protection starts straight away with sensible defaults. Every form with an active payment feed is protected automatically.

Step 2: Review the Protection Rules

The Protection rules section on Forms → Settings → Fraud Shield controls how many payment attempts are allowed. Each limit has its own time window, and 0 turns a limit off.

Fraud Shield Protection rules settings with payment attempts per IP address, per email address and per network, each with a time window
Velocity limits per IP address, email address and network with the default values.
Setting Default What it does
Payment attempts per IP address 5 in 10 minutes Blocks a visitor who keeps retrying from the same IP address.
Payment attempts per email address 5 in 60 minutes Blocks repeated attempts with the same email, even from different IPs.
Payment attempts per network 15 in 10 minutes Counts the same /24 IPv4 or /48 IPv6 range together, which catches bots rotating nearby addresses.
Attack spike: attempts per form from all visitors 60 in 10 minutes When a form gets more attempts than this, new attempts are challenged with Turnstile (if set up) or paused until the spike passes.
Declined payments before lockout 3 in 24 hours Blocks the IP address and email address after this many declined payments.
Minimum payment amount Off Blocks payments above zero but below this amount, such as 0.50 or 1.00 test charges.
Block disposable email addresses On Rejects throw-away inboxes such as mailinator.com. Add your own under More email domains to block, one per line.
Stop payments that fail the Gravity Forms anti-spam checks On Uses the form’s own honeypot and submission speed check when they are enabled on the form.

Choosing a minimum amount

Leave Minimum payment amount empty if you sell low-priced items or accept small donations. If your smallest real payment is, say, $10, a minimum of 1.00 to 5.00 stops most tiny test charges without affecting customers.

Step 3: Set Protection per Form

Open a form and go to Settings → Fraud Shield. Under Protection choose:

  • Automatic: protect this form when it has an active payment feed (default).
  • Always protect this form: useful while you are still setting up the payment feed.
  • Off for this form: skips all Fraud Shield checks on this form.
Payment Fraud Shield form settings with Protection set to Automatic, Always protect this form or Off for this form
The form tells you whether it is already protected automatically.

Checks run on the last page of the form, when the visitor submits, before any payment add-on processes the payment.

Step 4: Add the Optional Turnstile Security Check

Blocking is the safe default, but during a real attack some genuine customers may also hit a limit. With Cloudflare Turnstile, risky visitors are asked to complete a quick check instead of being blocked.

  1. In your Cloudflare dashboard, go to Turnstile → Add widget and copy the site key and secret key.
  2. Under Security challenge (Cloudflare Turnstile), paste the Site key and Secret key. The secret key is stored securely and never shown again.
  3. Choose When to show the challenge: Only when the risk is high (recommended), Always on protected forms or Off.

Risk is high when a visitor has used half of any limit, has a recent declined payment, or the form is under an attack spike. A solved check is remembered for that visitor for 30 minutes. If Cloudflare cannot be reached, customers are not locked out; the attempt and decline limits still apply.

Test the challenge on your site first

After adding the keys, switch to Always on protected forms for a moment and submit a test payment with your gateway in test mode. Confirm the check appears next to the submit button and the payment goes through after it is solved, especially on forms that submit with AJAX. Then switch back to Only when the risk is high.

Step 5: Allowlist, Messages and Alerts

  • Always allow: one IP address, IP range (for example 203.0.113.0/24), email address or @domain per line. These visitors skip every Fraud Shield rule, which is useful for your office or staff who take phone orders.
  • Message for blocked attempts and Message when the security check is needed: the text visitors see. Keep it friendly; it should not tell a bot which rule it hit.
  • Email me during an attack (on by default): sends an alert after 10 blocked attempts in 15 minutes, at most one per hour. Leave Alert email address empty to use the site admin email. Alerts contain counts and reasons only.
  • Keep the activity log for (days): 30 by default; older records are deleted automatically.

Step 6: Watch the Activity Log

Go to Forms → Fraud Shield to see the last 24 hours: payment attempts checked, attempts blocked and declined payments. Recent blocked attempts lists the time, form, shortened IP address, masked email, amount and reason.

Payment Fraud Shield screen with 24 hour stats and recent blocked attempts showing shortened IP addresses, masked emails, amount, reason and Unblock and Always allow buttons
Blocked attempts for a disposable email, an amount below the minimum and too many attempts from one IP.

If a real customer was blocked, click Unblock to clear their attempt history, or Always allow to add them to the allowlist. Entries from protected forms also show a Fraud Shield box with the result: Passed all checks, Passed after the security check or Allowlisted visitor (checks skipped).

How Fraud Shield Protects Your Gateway

  • It runs during Gravity Forms validation, before payment add-ons process the card, so a blocked attempt never creates a charge.
  • Declines are detected when the payment add-on rejects the payment during submission, and when a payment add-on later reports a failed payment to Gravity Forms.
  • Full IP addresses and emails are never stored. The log keeps salted hashes for counting and shortened labels such as 192.0.2.x and j***@example.com for display.
  • Page views add no database work; only submissions of protected forms are checked.

Using Stripe, PayPal or another gateway with its own payment screen?

Fraud Shield is designed for any Gravity Forms payment add-on, but each gateway handles its own card form and confirmation steps. Before relying on it, run a few test payments and a declined test card in your gateway’s test or sandbox mode, then check Forms → Fraud Shield to confirm attempts and declines are counted on your site. Keep your gateway’s own fraud tools switched on as well.

Behind a proxy, load balancer or CDN?

Fraud Shield uses the visitor IP address that Gravity Forms records. If your site sits behind a proxy or CDN such as Cloudflare, Gravity Forms may see the proxy’s address for every visitor, and all customers would share one IP limit. Make sure Gravity Forms receives the real visitor IP, for example with the gform_ip_address filter described in the Gravity Forms documentation, or your host’s real-IP setting.

Not Included in Version 1.0

  • Country allow or block lists.
  • Card BIN or card fingerprint rules (your server never sees card numbers with tokenised gateways).
  • Save and Continue abuse and spam on forms without payments.
  • Gateway-side rules such as Stripe Radar suggestions, and automatically turning off a payment feed.

Developer Filters

Fraud Shield includes two filters. gfx_fraudshield_blocked_message changes the message per reason (for example low_amount, velocity_ip, disposable_email or challenge_required), and gfx_fraudshield_disposable_domains edits the bundled list of disposable email domains.

functions.php
PHP
// Point visitors on form 12 to your support team when they are blocked
add_filter( 'gfx_fraudshield_blocked_message', function( $message, $reason, $form ) {
    if ( 12 === (int) $form['id'] && 0 !== strpos( $reason, 'challenge' ) ) {
        $message .= ' Need help? Call us on 555-0100.';
    }
    return $message;
}, 10, 3 );

// Allow a partner domain that is on the bundled disposable list
add_filter( 'gfx_fraudshield_disposable_domains', function( $domains ) {
    return array_diff( $domains, array( 'partner-mail.example' ) );
} );

Troubleshooting & FAQ

A real customer was blocked.

Open Forms → Fraud Shield, find the attempt and click Unblock (clears their attempt history) or Always allow. If it happens often, raise the limit that blocked them, set up Turnstile so risky visitors are challenged instead of blocked, and check that your site records the real visitor IP if you use a proxy or CDN.

All visitors seem to share one IP address.

Your site is probably behind a proxy, load balancer or CDN, and Gravity Forms is recording its address. Look at the IP address column in the log; if every row shows the same range, configure the real visitor IP as described above before tightening any limit.

Nothing appears in the log.

Check that the license is active, the form has an active payment feed (or is set to Always protect this form) and protection is not set to Off for this form. The log lists blocked attempts; the 24-hour counters show checked attempts and declines.

Does Fraud Shield replace reCAPTCHA or Turnstile fields?

No, it works alongside them. Anti-spam fields judge whether a visitor is a bot; Fraud Shield limits how many payment attempts anyone can make and locks out visitors after declined payments. Its own Turnstile check is only shown when the risk is high, unless you choose otherwise.

Is customer data stored?

Only salted hashes, a shortened IP address, a masked email, the amount, the form and the reason, kept for the number of days you choose. Uninstalling from Forms → Settings → Uninstall removes the log table and all settings.

Resource Hub

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr