
Chazie Baniquid
Technical Content Marketer
3 minutes to read
How to block countries in Beaver Builder Contact Form?
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
- Country filtering to allow or block submissions.
- Language filtering for entries in unwanted languages.
- Set submission frequency rules to stop abuse.
- Machine based-based spam detection that catches bots and automated submissions.
- Blocking of proxies, VPNs, and TOR traffic.
- Submission logs that show what was blocked and why.
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.
Go to OOPSpam Anti-Spam > Settings in WordPress and paste your API key.
Enable protection for Beaver Builder Contact Form in the settings.
Open the Country Filtering panel and decide whether to block specific countries or allow only selected ones. Save your changes.
Reviewing Submissions
You can see blocked and approved entries inside WordPress under Spam & Ham logs.
For more detail, visit your OOPSpam Dashboard to view filtering reports, reasons for blocking, and patterns over time.
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.
How to Do It
- Log in to your Cloudflare account.
- Go to Security > WAF > Firewall Rules.
- Create a new rule and name it “Block Countries.”
- Set the field to Country, the operator to is in, and select the countries to block.
- 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.