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.
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.
Selecting countries
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.
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.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.