How to block countries in Toolset Forms?

By

Technical Content Marketer

Reviewed by Onar Alili

Anti-Abuse Engineer & Co-founder

Toolset Forms

Toolset Forms does not include built-in country blocking. To stop spam or unwanted traffic, you need two options:

  1. Use oopspam Anti-Spam (that’s us 👋) for form-level filtering.
  2. Use Cloudflare Firewall Rules to block entire countries at the network level.

Option 1: Block Countries in Toolset Forms with oopspam

oopspam Anti-Spam integrates with WordPress and adds country and language filtering to your forms. It prevents unwanted submissions while letting legitimate users through.

Key Features for Toolset Forms

  • Block or allow submissions from specific countries.
  • Filter entries written in unwanted languages.
  • Limit form submissions to reduce spam and misuse.
  • Detect spam with machine learning and stop bots, proxies, VPNs, and TOR users.
  • Review blocked and approved entries with clear logs.

How to Set It Up

Install the oopspam plugin from Plugins > Add New in WordPress. Create an account at oopspam.com and generate an API key.

oopspam dashboard

Paste the API key into oopspam Anti-Spam > Settings.

Paste the API key into oopspam Anti-Spam

Enable protection for Toolset Forms in the plugin settings.

Enable protection for Toolset Forms in the plugin settings.

Go to Country Filtering and choose whether to block certain countries or allow only specific ones.

Country Filtering

Reviewing Entries

Blocked and approved submissions appear in two places: inside WordPress under the Spam & Ham logs:

oopspam WordPress under the Spam & Ham logs

and in your oopspam Dashboard with more detailed filtering reports:

oopspam Dashboard logs

This transparency lets you fine-tune settings and recover valid leads if needed.

Option 2: Block Entire Countries with Cloudflare

If the problem goes beyond form spam, such as DDoS attacks, scraping, or server overload, block traffic at the network level with Cloudflare.

How to Do It

Block Entire Countries with Cloudflare

  1. Log in to your Cloudflare account.
  2. Go to Security > Security rules.
  3. Create a new rule and name it “Block Countries.”
  4. Set the field to Country, operator to is in, and choose the countries you want to block.
  5. Set the action to Block and save.

Cloudflare will now block all visitors from those countries before they ever reach your site.

Which Method Should You Choose?

  • Use oopspam if you want precision — block only form submissions while leaving the rest of your site accessible.
  • Use Cloudflare Firewall if you need to block all access from a region for security, compliance, or server performance.

Final thoughts

Toolset Forms does not have built-in country blocking. But with oopspam, you can filter submissions by region and keep your forms clean. For stronger protection, layer Cloudflare Firewall rules to block entire countries at the network level.

This combination gives you control, flexibility, and security,  without disrupting legitimate visitors.

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: