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

Gravity Forms Friendly Captcha Premium Add-on Setup Guide

Updated 9 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. Requirements
  3. Installation
  4. Getting your keys
  5. The settings page
  6. The dedicated EU endpoint
  7. How answers are checked
  8. Timeout and outages: fail open or fail closed
  9. The field in the form editor
  10. AJAX, multi-page and Save and Continue forms
  11. Next to reCAPTCHA, Turnstile and hCaptcha
  12. The entry screen
  13. Privacy
  14. For developers
  15. Frequently asked questions
  16. Do visitors have to click anything?
  17. Which version should I choose?
  18. Can I host the widget script myself?
  19. What if Friendly Captcha is down?
  20. Is form data sent to Friendly Captcha?

Video walkthrough

Gravity Forms Friendly Captcha: Setup, Key Test, Fail Open vs Fail Closed
Watch: set up Friendly Captcha for Gravity Forms on the WordPress side, including fail open vs fail closed. Watch on YouTube

The Gravity Forms Friendly Captcha Premium Add-on protects your Gravity Forms forms with Friendly Captcha, a privacy-friendly anti-spam check made in Germany. Instead of asking people to pick pictures of buses, the visitor’s browser solves a small cryptographic puzzle in the background. It sets no cookies and does no tracking, real people usually never notice it, and bots that send thousands of forms have to pay for every single one with computing time.

This guide covers the requirements, installation, the keys and the widget version, the dedicated EU endpoint, how answers are checked, what happens during an outage, the field settings in the form editor, AJAX, multi-page and Save and Continue forms, the entry screen, privacy, developer hooks and answers to common questions.

A Gravity Forms form called Workshop booking filled in by Olga Petrova, with the Friendly Captcha widget below the message showing a black shield with a check mark and the words I am human
The check finished in the background while the visitor was typing: no clicks, no picture puzzles.

Requirements

  • WordPress 6.5 or newer and PHP 7.4 or newer (tested up to PHP 8.3).
  • Gravity Forms 2.9 or newer (tested with 2.9.8 and 3.1.2).
  • A Friendly Captcha account with an application (site key) and an API key. Both the free and the paid plans work. The dedicated EU endpoint needs an Advanced or Enterprise plan.
  • Your server must be able to make outgoing HTTPS requests to the Friendly Captcha verification address: global.frcapi.com for v2 or api.friendlycaptcha.com for v1, or the EU addresses when you use the EU endpoint.

Installation

  1. Download the zip from your GravityExtra account and upload it in Plugins, Add New, Upload Plugin.
  2. Activate the plugin. Gravity Forms must be active.
  3. Go to Forms, Settings, Friendly Captcha and activate your licence key.
  4. Enter your Friendly Captcha keys (see below) and save.
  5. Edit a form, add the Friendly Captcha field from Advanced Fields and update the form.

Getting your keys

Sign in to your Friendly Captcha dashboard. Under Applications, create an application for your website and copy its site key: a short code of capital letters and digits. Then open API Keys and create an API key. The site key is public and is printed in your forms; the API key is secret and stays on your server.

Friendly Captcha has two versions of its service. New applications use v2, which has stronger bot detection, a smoother widget and automatic language detection. Older applications may still be v1, which keeps working for years. The dashboard shows which version an application uses. Choose the same version in the add-on, because the widget, the answer field and the verification address differ between the two.

The Friendly Captcha keys section in Forms, Settings: Widget version v2 or v1, the site key, the API key field showing Saved, leave empty to keep it, the Endpoint choice Global or the dedicated EU endpoint hosted in Germany, the Widget script choice From this site or from the jsDelivr CDN, and the buttons Show the widget and Test the keys
One settings screen for the keys, the version, the EU endpoint and where the widget script comes from.

The settings page

  • Widget version: v2 (recommended for new applications) or v1.
  • Site key and API key: the API key is never shown again after saving. Leave the field empty to keep the saved key, or paste a new one to replace it.
  • Endpoint: Global, or the dedicated EU endpoint hosted in Germany. See the next section.
  • EU fall-back (v1): shown only for v1 with the EU endpoint. When ticked, v1 widgets use the global service if the EU one is down.
  • Widget script: from this site (the copy bundled with the add-on, the default) or from the jsDelivr CDN. Both are the same pinned version.
  • Test the keys: checks the keys typed on the screen, or the saved ones, with Friendly Captcha. Click Show the widget and let it finish to run a full check with a real answer.

When you save, the add-on checks the keys with Friendly Captcha. If the API key or the site key is refused, the settings are not saved and the reason is shown, for example that a v1 API key was used for a v2 application.

The dedicated EU endpoint

By default the widget fetches its puzzles from Friendly Captcha’s global network, which can be served from outside the EU depending on where the visitor is. With the EU endpoint, puzzles are fetched from servers in Germany and the add-on also sends its verification requests to the EU address, so visitor IP addresses do not leave the EU. Enable the EU endpoint on the application in the Friendly Captcha dashboard first; Friendly Captcha advises keeping both endpoints enabled until you have confirmed everything works.

Version Global verification EU verification
v2 global.frcapi.com eu.frcapi.com
v1 api.friendlycaptcha.com eu-api.friendlycaptcha.eu

How answers are checked

When the visitor sends the form, the widget’s answer travels with the form data in a hidden field. The add-on sends only that answer and your site key to Friendly Captcha’s siteverify service, authenticated with your API key. No name, e-mail or message is ever sent to Friendly Captcha. The answer is valid only once and only for a limited time.

  • Valid answer: the entry is saved and marked passed.
  • Wrong, expired or reused answer: the entry is refused with a message asking the visitor to wait for the check and send again. This is never relaxed, whatever the outage setting.
  • Unfinished widget: if someone presses Send before the widget is done, the add-on waits up to twelve seconds for it to finish instead of refusing the entry. Only a widget that still has not finished is refused, without asking Friendly Captcha.
  • Widget could not connect: if a browser blocks Friendly Captcha completely, the widget produces an error answer. The add-on passes it to Friendly Captcha, which decides, and tells the visitor to check their connection or blocker if it is refused.

Timeout and outages: fail open or fail closed

Every web service can fail. The Timeout setting (2 to 30 seconds, default 10) limits how long the add-on waits for Friendly Captcha. Then the outage rule applies. It also applies when Friendly Captcha answers with a server error, or refuses the API key or site key.

Setting During an outage
Fail open (default) The entry is accepted and marked not checked, with a note that explains why. This is what Friendly Captcha itself advises: it is better to accept a little spam for a while than to lose every real enquiry.
Fail closed The entry is refused and the visitor is asked to try again in a moment. Choose this for forms where spam is costly, such as free trial or voucher forms.

Either way, the time and reason of the last problem are shown at the top of the settings page, and the problem is written to the Gravity Forms log. Developers can hook into gefc_check_unavailable to send themselves an alert.

The field in the form editor

Add Friendly Captcha from Advanced Fields. A form can have one Friendly Captcha field; its default label is Spam protection, and you can change the label, add a description or a custom error message. The field stores nothing with the entry and never appears in notifications or exports.

  • Start: when the visitor starts filling in the form (focus, the default and Friendly Captcha’s own default), as soon as the page loads (auto, best when nearly every visitor sends the form), or when the visitor clicks the widget (none).
  • Theme: light, dark, or automatic to follow the visitor’s light or dark mode.
  • Language: automatic, or one of 35 languages such as German, French, Spanish, Dutch or Japanese.
  • Each setting can say Use the default, which follows the defaults on the settings page.

Without an active licence the button is hidden in the editor, but existing fields keep protecting their forms.

AJAX, multi-page and Save and Continue forms

  • AJAX forms: the widget restarts by itself when Gravity Forms shows the form again. If another field fails after the check passed, the form comes back marked Verified by Friendly Captcha and the visitor does not have to wait again.
  • Multi-page forms: put the field on any page. It is checked once, when the visitor leaves that page. A signed pass, valid for one entry and thirty minutes, carries the result to the last page, so Gravity Forms’ final check of every page does not ask Friendly Captcha a second time.
  • Save and Continue: saving sends nothing to Friendly Captcha. When the visitor comes back with the resume link, a fresh widget appears.
  • Several forms on one page: each form gets its own widget, and the script is loaded only once.

Next to reCAPTCHA, Turnstile and hCaptcha

The add-on loads only the Friendly Captcha script and uses its own names, so the Gravity Forms reCAPTCHA field, Cloudflare Turnstile and hCaptcha keep working on the same site and even on the same page. If another plugin already loads the Friendly Captcha script of the same version on a page, you can stop the add-on from loading a second copy with the gefc_load_api filter.

The entry screen

The Entry box of a Gravity Forms entry showing the entry id, submission date, embed URL and the line Friendly Captcha: passed followed by the event id
Every entry shows the result of the check and the Friendly Captcha event id.

The Entry box of every protected entry shows Friendly Captcha: passed with the event id that Friendly Captcha returns for v2 checks, or not checked when the entry was accepted during an outage. The Entries list can show a Friendly Captcha column and filter by it. With Entry note set to For every entry, each entry also gets a note.

Privacy

Friendly Captcha sets no cookies and does not track visitors across websites. By default the add-on serves the widget script from your own site, so no third-party script host sees your visitors when the page loads; the widget itself talks to Friendly Captcha to fetch and check puzzles. Add a short line to your privacy policy that the form uses Friendly Captcha to block spam, and choose the EU endpoint if you want that traffic to stay in the EU.

For developers

Hook What it does
gefc_skip_check Filter. Return true to skip the check for a submission, for example for trusted API submissions.
gefc_load_api Filter. Return false to stop the add-on from loading the widget script on a page.
gefc_check_unavailable Action. Fired when Friendly Captcha could not check a submission, with the error codes, whether the entry was accepted, and the form.

Frequently asked questions

Do visitors have to click anything?

Usually not. With the focus or auto start the puzzle is solved in the background while the visitor fills in the form. In v2, Friendly Captcha may ask for one click when its signals are unsure; there are never picture puzzles.

Which version should I choose?

The version of your application in the Friendly Captcha dashboard. New applications are v2. The keys of one version do not work with the other.

Can I host the widget script myself?

It already is: the add-on ships the script and serves it from your site by default. The jsDelivr option loads the same pinned version from the CDN.

What if Friendly Captcha is down?

With fail open the entry is saved and marked not checked; with fail closed the visitor is asked to try again. The last problem is shown on the settings page either way.

Is form data sent to Friendly Captcha?

No. Only the widget’s answer and your site key are sent, authenticated with your API key.

Stop form spam without puzzles, cookies or tracking

Get the Friendly Captcha add-on

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