How to block countries in Beaver Builder Contact Form?

Beaver Builder

Beaver Builder Contact Form does not support country blocking by default. To stop spam or unwanted traffic, you can use OOPSpam Anti-Spam (that’s us 👋)  to filter submissions by region or set up Cloudflare Firewall Rules to block visitors from entire countries before they reach your site.

Option 1: Block Countries in Beaver Builder Contact Form with OOPSpam

OOPSpam works directly with Beaver Builder forms. It lets you choose which countries can submit your forms and blocks spam entries from regions you don’t want.

Key Features

How to Set It Up

Install the OOPSpam Anti-Spam plugin from your WordPress dashboard. Create an account at OOPSpam.com and generate an API key.

OOPSpam Anti-Spam dashboard

Go to OOPSpam Anti-Spam > Settings in WordPress and paste your API key.

Paste your API key

Enable protection for Beaver Builder Contact Form in the settings.

Beaver Builder Contact Form Enable protection

Open the Country Filtering panel and decide whether to block specific countries or allow only selected ones. Save your changes.

Country Filtering

Reviewing Submissions

You can see blocked and approved entries inside WordPress under Spam & Ham logs

WordPress under Spam & Ham logs

For more detail, visit your OOPSpam Dashboard to view filtering reports, reasons for blocking, and patterns over time.

OOPSpam Dashboard logs

Option 2: Block Entire Countries with Cloudflare

If your problem is bigger than spam, such as brute force logins, DDoS attacks, or scraping, you can block traffic at the network level with Cloudflare.

Block Entire Countries with Cloudflare

How to Do It

  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, the operator to is in, and select the countries to block.
  5. Set the action to Block and save.

Visitors from those countries will now be denied access to your entire site.

Final thoughts

Beaver Builder Contact Form alone cannot stop submissions from specific countries. The easiest fix is to use OOPSpam to filter form entries by region. This gives you targeted control over who can submit your forms.

If the issue extends beyond form spam and affects your whole site, Cloudflare Firewall can block traffic from unwanted countries at the server level.

Together, these tools give you both form-level control and site-wide security.

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: