How to block countries in Elementor Forms?

Elementor Forms

Getting spam or unwanted traffic from specific countries? If you’re using Elementor Forms, there are two ways to block form submissions based on visitor location, even though Elementor doesn’t offer built-in geoblocking on its forms alone. In this guide, we’ll walk you through both:

Let’s go through both methods step-by-step.

1. Block Countries in Elementor Forms Using OOPSpam

OOPSpam Anti-Spam

If your Elementor forms are getting spammed, especially from certain countries, OOPSpam Anti-Spam (that’s us 👋) is the easiest and most precise solution. It adds reliable spam filtering, country-based blocking, and submission logs without affecting your website’s accessibility.

Does Elementor Support Native Country Filtering?

No, Elementor Forms do not include a built-in country or IP blocking feature. That means you’ll need an external anti-spam plugin to filter form submissions based on location.

Why OOPSpam Works Great With Elementor Forms

Once OOPSpam is activated, it works in the background to scan every form submission before it reaches your inbox. You get:

How to Set Up OOPSpam with Elementor

Step 1: Install the OOPSpam Plugin

From your WordPress Dashboard, go to Plugins > Add New, search for “OOPSpam Anti-Spam”, then install and activate it.

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

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

Step 2: Connect Your API Key

Connect Your API Key

Back in your WordPress admin, go to OOPSpam Anti-Spam > Settings, and paste the API key into the designated field.

Step 3: Enable Elementor Support

Scroll to the Elementor Forms section in the plugin settings and activate spam protection.

Activate spam protection in Elementor Forms

Once activated, all Elementor Forms on your site will start filtering submissions based on your OOPSpam rules.

Step 4: Block Countries

Go to the Country Filtering section. You’ll see two options:

 Country Filtering section

Choose your preferred method and select the countries. Don’t forget to save.

That’s it! Spammy form entries from restricted countries will be filtered silently without affecting your site access.

Review Blocked Submissions from Elementor

With OOPSpam, you’ll always know what’s been filtered and why. You can check:

Access this via:

Form Spam Entries / Form Ham Entries

OOPSpam Dashboard logs

This gives you clarity and control, especially helpful if you’re trying to fine-tune Elementor forms spam filters or rescue false positives.

2. Block Entire Countries from Your Elementor Website

If you’re using Elementor Hosting, you also get built-in geoblocking tools at the hosting level.

Elementor Hosting

⚠️ Note: This method blocks access to your entire site, not just form submissions. It’s best for broader security concerns or compliance needs.

How to Block Countries in Elementor Hosting 

How to Block Countries in Elementor Hosting

  1. Go to your My Elementor Dashboard
  2. Hover over the website card and click “Manage this site”
  3. In the side panel, click “Advanced”
  4. Switch to the Security tab
  5. Find “Limit traffic by country” and click the pencil ✏️ icon
  6. Choose your approach:

Choose your approach

  1. Use the dropdown to select countries to block or allow

Use the dropdown to select countries to block or allow

  1. Click Save

Blocked users will see a 403 Forbidden message and won’t be able to access your website.

When to Use This Method?

Use Elementor’s native geoblocking when:

Alternative: Use Cloudflare Firewall Rules (Optional)

If your site is behind Cloudflare, you can also block countries using its Web Application Firewall.

Use Cloudflare Firewall Rules

Steps:

  1. Log in to Cloudflare.com
  2. Choose your domain > go to Security > WAF > Firewall Rules
  3. Create a new rule
  4. Set Field = Country, Operator = is in, and choose the countries
  5. Choose Action = Block
  6. Save and deploy

Just like Elementor Hosting’s tool, this blocks all traffic from those countries site-wide.

What’s the Best Way to Block Countries in Elementor?

Method What It Blocks Best For
Elementor Native (Hosting) Entire website access Geoblocking for security or business restrictions
OOPSpam Plugin Form submissions only Spam filtering and per-form country blocking
Cloudflare Firewall Entire website access Advanced use cases like scraping or DDoS protection

Final thoughts

Elementor Forms don’t offer native country filtering but you’re not stuck. With OOPSpam Anti-Spam, you get advanced, form-level spam protection and region-based filtering without blocking legitimate traffic to your site.

Pair it with Elementor Hosting’s built-in geoblocking or Cloudflare rules if you need stricter site-wide controls.

Need help setting this up? You can check OOPSpam’s documentation, or contact our team anytime.

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: