How to block countries in Piotnet Forms?

Piotnet Forms

If you’re using Piotnet Forms, there’s no native option to block countries directly. But you still have reliable solutions to filter unwanted traffic and keep your forms clean.

This guide explains how you can achieve country-based blocking with OOPSpam Anti-Spam (for form-level filtering) or Cloudflare Firewall Rules (for site-wide blocking).

No Built-In Country Blocking in Piotnet Forms

Unlike some enterprise-level tools, Piotnet Forms does not provide a built-in feature to block submissions by country or IP address. That means if you need geographic filtering, you’ll need to connect a third-party plugin or service.

The two most effective approaches are:

Let’s break down how each works.

1. Block Countries in Piotnet Forms Using OOPSpam

OOPSpam Anti-Spam

If you’re mainly dealing with spam entries (especially from certain countries), OOPSpam Anti-Spam (that’s us 👋) is the most effective way. It integrates seamlessly with Piotnet Forms, giving you precise control at the form level without blocking legitimate site visitors.

What OOPSpam Adds to Piotnet Forms

When paired with Piotnet Forms, OOPSpam offers:

This gives you control over spam without impacting genuine users outside the blocked regions.

How to Set It Up

Here’s how to connect OOPSpam with Piotnet Forms:

Step 1: Install OOPSpam

From your WordPress dashboard, go to Plugins > Add New. Search for OOPSpam Anti-Spam.

Install and activate the plugin.

Step 2: Connect Your API Key

Sign up at OOPSpam.com and generate your API key.

Connect Your API Key

Go back to WordPress > OOPSpam Anti-Spam > Settings. Paste your API key in the designated field.

Paste your API key in the designated field.

Step 3: Enable Piotnet Forms Protection

Scroll down to the Piotnet Forms section and toggle spam protection on.

Enable Piotnet Forms Protection

This ensures all your Piotnet Forms are now filtered through OOPSpam’s system.

Step 4: Set Country Filters

Under Country Filtering, choose one of two options:

Country Filtering

Select your target regions and save.

Now, submissions from blocked countries won’t make it through your Piotnet Forms, but users can still browse your site normally.

Reviewing Blocked Submissions in Piotnet Forms

OOPSpam provides full transparency through logs. You can check:

Logs are available in two places:

WordPress dashboard

OOPSpam dashboard

This makes it easy to:

2. Block Entire Countries from Your Website with Cloudflare

If your issue goes beyond spam, like brute force logins, scraping, or DDoS attacks, you may want to block traffic at the network level using Cloudflare Firewall Rules.

Unlike OOPSpam, this blocks visitors from an entire country across your whole website, not just Piotnet Forms.

How to Set Up Country Blocking in Cloudflare

How to Set Up Country Blocking in Cloudflare

  1. Log Into Cloudflare
    • Go to cloudflare.com, log in, and select your website.
  2. Create a Firewall Rule
    • Go to Security > WAF > Firewall Rules.

    • Click Create Firewall Rule.

    • Name it (e.g. “Block Countries”).

    • Set conditions:

    • Field: Country
    • Operator: is in
    • Value: Select the countries you want blocked

    • Action: Block

    • Save and deploy.

From that point, traffic from those countries won’t even reach your server.

When to Use Cloudflare Blocking

This method is best when:

Final thoughts

Piotnet Forms doesn’t include country blocking by default, but with the right tools, you can manage it effectively.

Together, they give you flexible, layered defense against unwanted traffic.

OOPSpam integrates with many other form builders as well, including MailPoet, GiveWP Donation Forms, Paid Memberships Pro, Elementor Forms, and more, so if you switch platforms in the future, you won’t lose protection.

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: