How to Block Countries in Elementor Atomic Forms

Elementor Atomic Forms does not include built-in country blocking. To stop spam and unwanted submissions from specific regions, use OOPSpam for form-level country filtering or Cloudflare WAF for site-level blocking. The best practice is to combine both: OOPSpam for precision and Cloudflare for broad, edge-level protection.

Why You Might Need Country Blocking

Blocking certain countries can reduce spam, fake leads, and automated submissions, especially if your real audience is concentrated in a specific region. Atomic Forms is part of Elementor’s newer Editor V4 system and does not yet have a native geo filter, so you need an external tool to restrict submissions by country.

You can either:

Method 1: Use OOPSpam for Form-Level Country Filtering

OOPSpam integrates directly with Elementor Atomic Forms. It uses reputation checks and intelligent detection to identify spam and lets you block or allow countries right from your WordPress dashboard. This gives you accurate, invisible protection without disrupting real users or adding extra steps to your form.

How to Set It Up

Install and activate OOPSpam Anti-Spam from the WordPress Plugin Directory.

OOPSpam

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

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

In WordPress, go to Settings > OOPSpam Anti-Spam > General, and paste your API key.

OOPSpam Settings

In the OOPSpam settings, find the Elementor Atomic Forms section and toggle on Activate Spam Protection so submissions are checked automatically.

Elementor Atomic Forms section and toggle on Activate Spam Protection

Set up country filtering under the General Settings tab:

Set up country filtering under the General Settings tab

Turn On Extra Filters

Turn On Extra Filters

After setting up your filters, test your Atomic Form by submitting it in Incognito mode. Then check the Spam and Ham logs in WordPress to confirm unwanted submissions are being blocked. You can also review the OOPSpam Dashboard to see which submissions were filtered and why.

Logs in OOPSpam Dashboard

Benefits of OOPSpam for Atomic Forms

Method 2: Use Cloudflare WAF to Block Countries at the Edge

Cloudflare’s Web Application Firewall (WAF) lets you block or challenge requests by country before they ever reach your WordPress site. This is best for region-limited sites or when you are facing high-volume spam attacks that need to be stopped before they hit your server.

How to Set It Up

Use Cloudflare WAF to Block Countries at the Edge

  1. Log in to your Cloudflare Dashboard.
  2. Go to Security > Security Rules.
  3. Click Create a new rule and name it “Block Countries.”
  4. Set the field to Country, choose the operator is in, and select the countries you want to block.
  5. Choose Block as the action and click Save to apply the rule.

A Note on Error Messages

When OOPSpam blocks a submission, Atomic Forms shows a default error message rather than a custom one. You can make this clearer for legitimate users:

A Note on Error Messages

  1. Select the Atomic Form in the Elementor editor.
  2. In the left panel, go to General > Content > States and select Error.
  3. Click on the error message text on the canvas.
  4. Edit it to something more specific, such as “We’re unable to process submissions from your region.”

Final Takeaway

The best way to block countries in Elementor Atomic Forms is to use OOPSpam for precision and Cloudflare WAF for extra perimeter security. Together, they create a layered defense. Your Atomic Forms stay clean, your site remains accessible to real visitors, and only legitimate users get through.

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: