
Chazie Baniquid
Technical Content Marketer
7 minutes to read
How to block countries in GiveWP Donation Forms?
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:
- Use a third-party plugin like OOPSpam Anti-Spam (that’s us 👋) to block submissions based on country or language
- Use Cloudflare’s Web Application Firewall (WAF) to block access to your entire website from selected countries
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
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:
- Country Filtering – Block or allow specific countries
- Language Filtering – Prevent submissions written in undesired languages
- Machine Learning-Based Spam Detection – Filters out bots and suspicious patterns
- Rate Limiting – Prevents abuse by limiting how often the form can be submitted
- Proxy, VPN, and TOR Blocking – Stops anonymized spam sources
- Detailed Logs – Gives full visibility into every blocked or accepted submission
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:
- Go to Plugins > Add New
- Search for OOPSpam Anti-Spam
- Click Install and then Activate
Step 2: Connect Your API Key
Sign up at OOPSpam.com and generate your 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.
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:
- Choose to either block submissions from specific countries or
- Only allow submissions from your preferred list of countries
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:
- IP address
- Spam score
- Submission content
- Detection reason
- Timestamp
- Email address (if submitted)
You can access this information in two places:
- Spam and Ham logs inside your WordPress dashboard
- The OOPSpam Dashboard, which provides advanced submission history and spam trend tracking
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
Step 1: Log Into Cloudflare
Go to Cloudflare.com, log in, and select your website.
Step 2: Create a Firewall Rule
- Navigate to Security > WAF > Firewall Rules
- Click Create Firewall Rule
- Name the rule (e.g., “Block Countries”)
-
Set the rule criteria:
- Field: Country
- Operator: is in
- Value: Choose countries to block
- Action: Block
- 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:
- Your site is under attack from a specific country or region
- You need to comply with international regulations
- You want to reduce server load from unqualified or abusive traffic
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.
- OOPSpam Anti-Spam gives you country-based filtering, spam scoring, and full submission logs, all without blocking legitimate visitors.
- Cloudflare provides network-level country blocking when you need complete access control.
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.