How to block countries in Toolset Forms?

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

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 > WAF > Firewall 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?

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: