New Inspiro AI Demo Generator — can't find the perfect demo? Describe your website and AI builds a custom one in about 2 minutes. Learn more →

Knowledge Base

Documentation

Theme Documentation



Plugin Documentation



Resources

Country Blocking PRO

This article refers to WPBruiser

If spam and attacks on your site come from countries where you have no visitors, WPBruiser Pro can reject submissions from those countries — or accept them only from the countries you serve. Countries are looked up on your own server with current data that ships with each release.


Table of Contents

  1. Choosing a mode
  2. Selecting countries
  3. What gets rejected
  4. Don’t lock yourself out
  5. Where the country data comes from

Choosing a mode

Go to WPBruiser → Security and scroll to Country Blocking. Choose how the selected countries are treated:

  • Reject submissions from the selected countries — block a few countries, accept everyone else.
  • Accept submissions only from the selected countries — accept a few countries, block everyone else. Useful for a local business or a members’ site in one country.
Country Blocking set to accept submissions only from the selected countries

Selecting countries

  1. Tick the countries in the list. Type in Search countries to filter it; the count next to the search box shows how many are selected, and Clear selection unticks them all.
  2. Click Save Countries.

What gets rejected

Country blocking applies to every protected form — WordPress logins and comments as well as every integration. A rejected submission appears in WPBruiser → Reports as Blocked Country.

  • Unknown countries are never rejected. If an address can’t be matched to a country, the submission is let through, so a gap in the data can’t lock anyone out.
  • Allowed IP addresses skip the check. Addresses on your allow list are never blocked by country.
  • Country blocking applies to protected form submissions only; visitors from any country can still browse your site.

Don’t lock yourself out

The box shows the country of your own IP address. If your current settings would reject your own country, a warning appears instead, with your address, so you can add it to the allow list or change the selection before you save.

Planning to travel, or using a VPN? Add your home IP address to the allow list, or make sure the countries you’ll sign in from aren’t rejected.


Where the country data comes from

  • WPBruiser Pro ships with DB-IP’s free IP to Country Lite database, licensed CC BY 4.0. The month of the bundled data is shown under the list, and each release includes the latest monthly data.
  • On sites behind Cloudflare, Cloudflare’s own country header is used first.

Lookups happen on your server; no address is sent to any outside service. If your site is behind a proxy other than Cloudflare, make sure WPBruiser sees real visitor addresses — see Getting the Right Visitor IP Behind Cloudflare or a Proxy.


What’s Next?

Last updated on October 17, 2026