How to block countries in GiveWP Donation Forms?

GiveWP

Running a donation form shouldn’t come with the hassle of spam entries, especially from countries you don’t even serve. Unfortunately, GiveWP doesn’t offer a built-in feature to block countries from accessing or submitting donation forms. But that doesn’t mean you’re out of options.

With the help of tools like OOPSpam Anti-Spam and Cloudflare, you can take back control and filter submissions based on location, language, and more.

No Built-In Country Blocking in GiveWP

GiveWP is a feature-rich platform for building donation forms and managing donor data, but it currently lacks built-in tools for geographic submission control. That means you can’t restrict donations by country directly within the form settings.

However, there are two main workarounds:

GiveWP has an open feature request for the ability to limit countries in the billing address dropdown. This indicates that native country-blocking functionality may be introduced in the future. If this feature would help your workflow, you can upvote the request on GiveWP’s official feature request platform to show your support. You’re also encouraged to submit your own request if you believe this feature is critical to your use case.

Let’s walk through the available solutions for now.

1. Block Countries in GiveWP Forms Using OOPSpam

OOPSpam Anti-Spam

If your goal is to block spam entries or limit submissions based on geography, OOPSpam Anti-Spam is the most practical way to do it within WordPress. It integrates smoothly with GiveWP and doesn’t require custom code or form modifications.

What OOPSpam Adds to GiveWP

By connecting OOPSpam to your GiveWP donation forms, you gain:

It’s an ideal setup for nonprofit sites looking to streamline donations and protect from bad actors.

How to Set It Up

Follow these steps to connect OOPSpam with GiveWP:

Step 1: Install the Plugin

From your WordPress admin dashboard:

Step 2: Connect Your API Key

Connect Your API Key

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

Paste the API key

Back in WordPress, go to OOPSpam Anti-Spam > Settings.Paste the API key into the designated field.

Step 3: Enable Spam Protection for GiveWP

In the settings panel, scroll to the GiveWP section and toggle on spam protection.

Enable Spam Protection for GiveWP

This ensures all donation forms created through GiveWP are now filtered through OOPSpam.

Step 4: Block or Allow Specific Countries

Under the Country Filtering section:

Country Filtering section

Once selected, save your settings. OOPSpam will handle the rest.

Reviewing Blocked Submissions in GiveWP

Transparency is one of OOPSpam’s strengths. You get clear, actionable insights with every filtered submission:

You can access this information in two places:

Spam and Ham logs inside your WordPress dashboard

OOPSpam Dashboard logs

This is especially useful for reviewing false positives or fine-tuning filters over time.

2. Block Entire Countries Using Cloudflare

If you’re experiencing broader abuse, like scraping, DDoS attacks, or fraudulent access attempts, it may be worth taking it one step further by blocking countries at the server level.

With Cloudflare’s Web Application Firewall (WAF), you can block traffic from specific countries before they even reach your site.

⚠️ Note: This blocks all website visitors from selected regions, not just form submissions.

How to Set Up Country Blocking in Cloudflare

How to Set Up Country Blocking in Cloudflare

Step 1: Log Into Cloudflare

Go to Cloudflare.com, log in, and select your website.

Step 2: Create a Firewall Rule

  1. Navigate to Security > WAF > Firewall Rules
  2. Click Create Firewall Rule
  3. Name the rule (e.g., “Block Countries”)
  4. Set the rule criteria:

    • Field: Country
    • Operator: is in
    • Value: Choose countries to block
  5. Action: Block
  6. Save and deploy the rule

Visitors from those countries will now be blocked from accessing any part of your website, including donation pages.

When to Use Cloudflare Blocking

Use Cloudflare’s geo-blocking when:

What’s the Best Method for Country-Based Blocking in GiveWP?

Method What It Blocks Best For
GiveWP Built-In Not Available No native country-blocking support
OOPSpam Plugin Form submissions Donation filtering, spam reduction
Cloudflare Firewall Entire site access Site-wide control, compliance, DDoS defense

Final thoughts

While GiveWP doesn’t offer built-in tools to block countries, there are effective workarounds.

Combining both tools can give you peace of mind while keeping your donation forms open to the regions you serve best. OOPSpam works not only with GiveWP forms but also with other form builders like Elementor, Gravity, Bricks, Formidable, Forminator, and more.

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: