How to block countries in MailPoet?

MailPoet

If you’re using MailPoet to send emails or manage subscriptions, you might want to block signups or email delivery from certain countries. While MailPoet doesn’t offer a built-in way to do this, there are effective ways to manage it. This guide covers several methods, including plugin-based filtering, subscriber segmentation, and server-level country blocking.

Does MailPoet Have Built-In Country Blocking?

Not directly. MailPoet doesn’t allow you to prevent users from certain countries from accessing subscription forms or signing up.

However, there are multiple ways to work around this limitation:

Let’s walk through each of these in detail.

1. Segment Subscribers by Country in MailPoet (WooCommerce Integration)

MailPoet and WooCommerce

If you’re running WooCommerce alongside MailPoet, you can segment subscribers by country using data collected at checkout or registration.

How It Works

MailPoet offers country-based conditions for WooCommerce users. With this feature, you can create subscriber segments using filters like:

By selecting “is in country”, you can segregate your customers by location. You can select from the conditions “any of” or “none of” to include or exclude countries.

This lets you:

This method filters who receives your emails, not who can submit a form. It requires WooCommerce installed and integrated with MailPoet. It also doesn’t stop subscriptions from users in those regions.*

2. Block Country Submissions in MailPoet Forms with OOPSpam

OOPSpam Anti-Spam

If you want to prevent unwanted signups at the form level, the best way is to use a third-party plugin like OOPSpam Anti-Spam (that’s us 👋).

OOPSpam adds real-time spam filtering and allows you to block form submissions based on country, language, or suspicious behavior. It integrates with multiple form plugins, including MailPoet’s subscription forms.

What OOPSpam Adds to MailPoet

When connected, you gain:

How to Set It Up

Step 1: Install the Plugin

From your WordPress dashboard: Go to Plugins > Add New, search for OOPSpam Anti-Spam, then install and activate it.

Step 2: Connect Your API Key

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

Generate your API key

and paste it into OOPSpam > Settings in WordPress.

Paste it into OOPSpam > Settings in WordPress

Step 3: Enable Spam Protection for MailPoet

Scroll to the MailPoet section in OOPSpam settings and toggle it on.

Enable Spam Protection for MailPoet

Step 4: Configure Country Rules

Choose whether to:

Configure Country Rules

Save your settings, and OOPSpam will handle filtering at the form level.

Reviewing Blocked Submissions

OOPSpam gives you detailed logging, including:

You can monitor form activity and fine-tune your rules as needed, all from your dashboard

OOPSpam Dashboard logs

or the OOPSpam online portal.

OOPSpam online portal

3. Block Countries from Accessing Your Site with Cloudflare

If you’re experiencing broader abuse (e.g., fake signups, bot traffic, scraping), a more aggressive option is to block entire countries from accessing your website using Cloudflare.

This method stops traffic before it even hits your MailPoet forms, but it affects your entire site.

How to Block Countries with Cloudflare

Block Countries with Cloudflare

  1. Log in to Cloudflare and choose your domain
  2. Navigate to Security > WAF > Firewall Rules
  3. Click Create Firewall Rule
  4. Name it “Block Countries”
  5. Set the criteria:

    • Field: Country
    • Operator: is in
    • Value: Select the countries to block
  6. Action: Block
  7. Save the rule

Traffic from those countries will now be blocked across your entire site, including all MailPoet forms and pages.

When to Use Cloudflare

Cloudflare doesn’t give you form-level visibility like OOPSpam, but it’s effective for broad access control.

4. Combine MailPoet Segmentation + Plugins for Stronger Control

For the most control, consider combining: OOPSpam to prevent signups from unwanted countries and MailPoet segmentation to prevent email delivery to unwanted countries.

This dual approach allows you to:

Important Considerations

What’s the Best Method for Country Blocking in MailPoet?

Method What It Controls Best For
MailPoet Segmentation (Woo) Email audience Targeted campaigns by country
OOPSpam Plugin Form submissions Blocking fake or unwanted signups
Cloudflare Firewall Entire site access Network-level blocking and compliance
Combination (OOPSpam + Segments) Both form + email delivery End-to-end control for filtering and targeting

Final thoughts

MailPoet doesn’t include built-in country-blocking for subscriptions, but that doesn’t mean you’re stuck. Using OOPSpam Anti-Spam, you can block form submissions from specific countries or languages. Pair it with MailPoet’s WooCommerce segmentation and Cloudflare’s firewall for full control over who can access your forms and receive your emails.

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: