How to block countries in Kadence Form?

Kadence

Seeing unwanted or spam submissions from certain countries through your Kadence Forms? While Kadence Blocks offers a flexible form builder, it currently does not include built-in support for blocking submissions by country. The form block doesn’t provide IP-based or geo-location filtering natively.

That said, you can still manage this with the right tools. By integrating with a plugin like OOPSpam Anti-Spam (that’s us 👋), you can enable country-level filtering for your forms. For broader protection, you can also apply server-level country blocks using Cloudflare.

No Built-In Country Blocking in Kadence Forms

Kadence Forms are part of the Kadence Blocks plugin suite, offering lightweight yet functional form-building capabilities. However, as of now, there’s no native setting to filter or restrict form entries by country, IP, or language.

That means you’ll need to turn to an external solution to block spam and filter submissions from specific regions. Let’s explore how to do that using OOPSpam and Cloudflare.

1. Block Countries in Kadence Forms Using OOPSpam

OOPSpam Anti-Spam plugin

If you’re getting spam submissions, especially from specific countries, OOPSpam Anti-Spam is the easiest way to fix it. This plugin offers advanced spam filtering and integrates smoothly with Kadence Forms.

It doesn’t require you to modify your forms, add hidden fields, or write code. Once installed, you just toggle Kadence Forms protection on, select which countries to block, and you’re done!

What OOPSpam Adds to Kadence Forms

Here’s what you unlock by using OOPSpam with Kadence:

How to Set It Up

Follow these steps to connect OOPSpam to your Kadence Forms:

Step 1: Install the OOPSpam Plugin

In your WordPress dashboard:

Step 2: Add Your API Key

Create an account at OOPSpam.com and generate your API key.

OOPSpam dashboard displaying API usage, average response time, and API key.

Go to OOPSpam Anti-Spam > Settings in your WordPress dashboard and paste the API key in the appropriate field.

Paste the API key in the appropriate field

Step 3: Enable Kadence Protection

Scroll to the Kadence Forms section and toggle on spam protection.

Enable Kadence Protection

Step 4: Block or Allow Countries

In the Country Filtering section:

Country Filtering section

Your forms will now be protected automatically, no manual adjustments needed per form.

Reviewing Blocked Entries

OOPSpam gives you access to detailed submission logs, allowing you to:

These logs are visible in both your WordPress dashboard

WordPress dashboard

and the OOPSpam online dashboard.

OOPSpam online dashboard

2. Block Countries Entirely Using Cloudflare

If you’re seeing issues beyond form spam, like DDoS attacks, brute-force login attempts, or scraper bots, you may want to block entire countries from accessing your website.

This method is handled via your CDN or hosting firewall, such as Cloudflare.

This blocks all traffic from selected countries, not just form submissions.

How to Block Countries with Cloudflare

How to Block Countries with Cloudflare

Step 1: Log In to Cloudflare

Visit Cloudflare.com, log in, and select your domain.

Step 2: Create a Firewall Rule

  1. Navigate to Security > WAF > Firewall Rules
  2. Click Create Firewall Rule
  3. Name your rule (e.g., “Block Countries”)
  4. Set these conditions:

    • Field: Country
    • Operator: is in
    • Value: Select the countries you want to block
  5. Action: Block
  6. Save the rule

Once saved, users from the blocked countries will be fully restricted from accessing any part of your site, including Kadence Forms.

When to Use This Method

What’s the Best Way to Block Countries in Kadence Forms?

Method What It Blocks Best For
Kadence Forms Built-In Not Available No native functionality for country filtering
OOPSpam Plugin Form submissions Preventing unwanted entries while preserving access
Cloudflare Firewall Entire website Blocking site-wide access from specific countries

Final thoughts

Kadence Forms don’t have a built-in way to block countries. OOPSpam Anti-Spam fills the gap by offering advanced spam filtering, country and language blocking, and detailed logs, all without altering your forms. 

For broader protection, Cloudflare lets you block entire regions from reaching your site altogether. Together, they give you the flexibility to filter traffic and protect your forms from abuse, without sacrificing legitimate engagement.

Need help getting started? Check out the OOPSpam documentation or contact the team for setup support.

Spam Protection for WordPress, Zapier, Make and more.

Since our launch in 2017 we’ve been perfecting our API to be the trusted option for small businesses to enterprise— and continue to stick to our values of being the accessibility and privacy-friendly option. Give us a shot!

Try OOPSpam for free → Try our WordPress plugin for free →

✓ No credit card required ✓ Cancel anytime

Enjoy Reading This Article?

Here are some more articles you might like to read next: