DevDome Country Blocker is a geo blocker for WordPress with country block and allow lists. Block visitors by country or allow only listed countries, subject to your safety exemptions. Blocked visitors get a 403 page with your text or a redirect to another website. Geo blocking uses verified Cloudfla
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 6.0 and PHP 7.4.
SourceWordPress plugins · Nov 26, 2026
01 / Source details
Aboutthistool.
DevDome Country Blocker is a geo blocker for WordPress with country block and allow lists. Block visitors by country or allow only listed countries, subject to your safety exemptions. Blocked visitors get a 403 page with your text or a redirect to another website.
Geo blocking uses verified Cloudflare country headers or the free local DB-IP country database for GeoIP detection. The local database supports IPv4 and IPv6, with automatic monthly refresh. Country detection runs on your server without external lookup requests during visits.
Before you geoblock visitors, use Test Mode to let everyone through and log requests that would be blocked. You can restrict by country while keeping individual IPv4 and IPv6 addresses or CIDR ranges exempt through Always Allowed Addresses. wp-admin is never blocked, and visitors whose country is unknown are always allowed.
How It Knows the Country
Cloudflare: reads the country header only after checking that the connecting address belongs to a Cloudflare edge range.
Local database: download the free DB-IP country database with one click in Settings. It supports IPv4 and IPv6. Lookups run on your server, with automatic monthly refresh through a daily scheduled check.
CloudFront or Vercel: reads their country header only after you turn on Proxy Headers. Use it only when the site really runs behind one of them.
Your own proxy or load balancer: enter its addresses under Trusted Proxies. The plugin reads X-Forwarded-For only when the connection comes from a listed proxy.
Try Before You Block
Turn on Test Mode to let everyone through and log requests that would be blocked. Test hits are marked “Test” and do not increase blocked totals.
Your Connection on the Overview shows your country, detection source, installed database month and address.
Keep Access to Your Site
wp-admin is never blocked.
Login blocking is optional. A settings save is refused if it would block the saving visitor’s detected country from the login page without an allowed address.
Logged-in users are exempt from front-end blocking by default.
Always Allowed Addresses accepts individual addresses and CIDR ranges, for IPv4 and IPv6.
Unknown countries are always allowed.
Add define('DEVDCOUN_DISABLE', true); to wp-config.php to switch all blocking off.
Optional Login, XML-RPC, REST API and admin-ajax.php Blocking
Apply your country rules to wp-login.php, xmlrpc.php, the REST API and admin-ajax.php with separate settings. All four are off by default. Always Allowed Addresses still applies. On the login page and xmlrpc.php the logged-in and crawler exemptions do not apply; REST API and admin-ajax.php requests are judged only when the visitor is not logged in, so the editor, apps that sign in and logged-in users keep working.
Block Addresses and Networks
Always Blocked Addresses blocks single addresses and ranges whatever their country, in every mode, even while country blocking is off. Blocked Networks does the same for whole networks by their number (ASN), and one switch blocks every known data-center, hosting and VPN network from the shared DevDome list. Network rules ask the DevDome geo service which network a new visitor address belongs to (see External services); nothing is sent while no network rule is on.
Push to Cloudflare
With a Cloudflare API token the plugin pushes your country rule to the zone’s WAF as one custom rule, so blocked visitors are stopped at the edge, before the cache and before they reach your server. Nothing is sent until you press Push; Remove deletes that one rule again. Other rules in your zone are never touched.
Search Engines and Health Checks
One checkbox exempts Google, Bing, DuckDuckGo and Apple crawlers, plus the DevDome health monitor, from front-end blocking. A crawler is exempt only when its user agent matches and its address is confirmed by reverse DNS (cached per address), so a visitor pretending to be Googlebot is still blocked.
Review Blocked Visits
Overview tiles show blocked requests today, over 7 and 30 days, and the number of listed countries. Top Blocked Countries shows counts over 30 days.
The log keeps about the last 200 hits, including Test Mode hits. It shows time, country, result, anonymized address, path without its query string, and user agent.
Use Refresh Now to recalculate the totals. Clear Statistics removes every counter and logged hit after you type CLEAR.
Limits
Blocking applies only to requests that reach WordPress. A full-page cache or CDN can serve a cached page before the plugin runs.
admin-ajax.php and REST API requests are blocked only when their switches are on, and only for visitors who are not logged in. An unknown network, like an unknown country, is always allowed. On multisite, each site has separate settings, country lists and statistics, so set up each site separately.
AI Agents and MCP
On WordPress 6.9+, the plugin registers 8 abilities: get-status, get-settings, update-settings, get-statistics, lookup-country, update-database, refresh-summary and clear-statistics. Compatible agents and MCP clients can use them through the WordPress MCP Adapter. Every ability requires the plugin capability, manage_options by default. Older WordPress versions register none.
Agents must pass confirm: true after the owner agrees to:
Download or update the database, or clear statistics.
Enable login or XML-RPC blocking.
Change who is blocked when either the current or proposed mode is not Off and its country list is nonempty. This includes mode, active country list, Test Mode, login/XML-RPC settings, logged-in or crawler exemptions, proxy settings and allowed addresses. Changes that reduce blocking also need confirmation.
This settings rule applies even in Test Mode. Changing only the message, redirect or response action does not require confirmation. Agent output never carries full visitor addresses, email addresses or server paths.
External services
IP database download ( db-ip.com ), only when you press “Download Database” in Settings (or “Update Database Now”, shown there after a failed monthly update), when an agent runs update-database, and afterwards by a daily check that downloads again only when a newer monthly dataset is due (or the last attempt failed). The plugin downloads the free “IP to Country Lite” file from https://download.db-ip.com/free/ (about 10 MB, server-to-server). It is a plain file download: no visitor data, site data or personal data is sent. If you never install the database (for example because your site is behind Cloudflare), nothing is ever downloaded. Service provider: DB-IP. Licence: Creative Commons Attribution 4.0. Terms: https://db-ip.com/db/lite.php Privacy policy: https://db-ip.com/privacy.php
Error reports ( devdome.com ), only when you press “Report this error” on an error message. The plugin sends the error text, the plugin, bundled library, WordPress and PHP versions, whether the site is a multisite, the site locale, the screen you were on, its own state (mode, counts and flags, never a visitor address), your site address, the generated site ID, your DevDome account ID if the site is connected, and your admin e-mail (so support can reply) to https://devdome.com/api/plugin/error-report . Nothing is sent unless you press the button. Service provider: DevDome. Terms: https://devdome.com/terms-of-service Privacy policy: https://devdome.com/privacy-policy
Plugin catalog ( devdome.com ). The DevDome Dashboard inside wp-admin fetches the list of DevDome plugins (names, descriptions, logos, links) from https://devdome.com/wp-plugins/catalog.json at most once every 12 hours (one hour after a failed fetch), so the list stays current. Only the bundled core version is sent in the request; no site or visitor data. Service provider: DevDome. Terms: https://devdome.com/terms-of-service Privacy policy: https://devdome.com/privacy-policy
Network lookup ( api.devdome.com ), only while a network rule is on (Blocked Networks or Data Centers and VPNs). For a visitor address not seen in the last 24 hours the plugin sends that one public address to https://api.devdome.com/geo-resolve/classify and receives its network number; the answer is cached for a day, at most 60 lookups a minute are made, a 2-second limit applies and when the service does not answer the visitor is let in. Nothing else about the site or the visitor is sent. With no network rule on, no address is ever sent.
Network list download ( api.devdome.com ), only while Data Centers and VPNs is on. The shared list of data-center, hosting and VPN network numbers is downloaded from https://api.devdome.com/bot-protection/asns once when you turn the switch on and then once a day (a plain download, nothing about your site is sent); it is removed when you turn the switch off.
Cloudflare API ( api.cloudflare.com ), only when you press Push to Cloudflare or Remove from Cloudflare. The plugin sends your Cloudflare API token, your site’s host name (to find the zone) and the rule (your blocking mode, country codes and Always Allowed Addresses) to Cloudflare’s API, and creates, updates or deletes the one WAF custom rule named DevDome Country Blocker. Cloudflare’s terms: https://www.cloudflare.com/terms/ and privacy policy: https://www.cloudflare.com/privacypolicy/. DevDome’s terms: https://devdome.com/terms/ and privacy policy: https://devdome.com/privacy/.
Country detection, country blocking and statistics run entirely on your own server and make no network requests during a visit; the three services above are used only for the optional features that need them.
The plugin bundles the shared DevDome suite library that powers the DevDome Tools dashboard. What that library may contact depends on the edition you are running; on the WordPress.org edition nothing is contacted before you act; the self-hosted edition also checks for updates as described below.
WordPress.org edition
The WordPress.org package carries a build marker that keeps the library’s bot-detection feed download permanently off and contains no self-hosted updater; updates come
See it in action
Screenshots & previews.
Overview: blocked totals, Your Connection, top blocked countries and recent hits.Settings: blocking modes, the searchable country picker and the blocked visitor response.Safety settings: logged-in and crawler exemptions, proxy settings and Always Allowed Addresses.The 403 page: a plain page displaying your message to blocked visitors.
02 / Source details
Gettingstarted.
01Upload and activate the plugin.
02Open DevDome > Country Blocker .
03If using local country detection, click Download Database in Settings.
04Check Your Connection . Add your own reverse proxy under Trusted Proxies if needed.
05Choose a mode, add countries and enable Test Mode . Click Save Settings .
06Review the test hits. Turn Test Mode off and save when ready to block.
03 / Source details
Frequently asked questions.
Is anything paid?
The plugin’s features and local DB-IP Lite database are free. No account or licence key is required for country blocking.
Can I lock myself out?
wp-admin is never blocked. The save check refuses login rules that would block your current detected country unless your address is allowed. A later change of address or country can still affect login access. Add your address to Always Allowed Addresses, or use define('DEVDCOUN_DISABLE', true); in wp-config.php to recover.
Does it slow my site down?
Country detection checks headers or searches local database files. It makes no external lookup request during a visit. Blocked hits write a counter and log entry, with occasional log cleanup. Test Mode writes log entries without blocked counters. These operations use server resources.
Why does the Overview say blocking is inactive?
The “No country source” warning means no usable country source is available. Install the local database or check your Cloudflare setup. Without a country, visitors are allowed. Off mode, an empty active list and Test Mode also block nobody.
My site is behind Nginx, Varnish or a load balancer, does it work?
Yes. List your proxy’s addresses or ranges under Trusted Proxies and have it supply X-Forwarded-For. Install the local database for address lookups. Your Connection shows the address the plugin sees. Cloudflare needs no Trusted Proxies entry.
Does it work with a caching plugin or a CDN?
Only requests reaching WordPress are checked. Cached pages served before WordPress runs bypass the plugin. Configure country rules at the cache, CDN or firewall when those responses also need blocking.
Does it block the login page and XML-RPC?
Only when you enable their separate settings. Both are off by default. Allowed addresses still get through, but logged-in and crawler exemptions do not apply there.
Does it block WooCommerce checkout or REST API calls?
A checkout page can be blocked like other front-end pages. REST API and admin-ajax.php requests are exempt unless you turn their switches on; even then only visitors who are not logged in are judged. The plugin does not provide a separate WooCommerce checkout rule.
Does it work on multisite?
Yes. Each site keeps its own settings, country lists, database and statistics. Configure each site separately.
What happens to a visitor whose country is unknown?
They are always allowed, including in allow-only mode.
How do I test my list before it blocks anyone?
Choose your mode and countries, enable Test Mode and save. Review Recent Blocked Hits for rows marked “Test”. Exempt visitors do not produce test hits. Turn Test Mode off and save to enforce the list.
Does it block at the CDN edge?
Inside WordPress by itself. On Cloudflare, press Push to Cloudflare in Settings with an API token: the plugin creates one WAF custom rule with your country list, and the block then happens at the edge, before the cache.
Can I block a single address or a whole network?
Yes. Always Blocked Addresses takes addresses and ranges; Blocked Networks takes network numbers (ASN); the Data Centers and VPNs switch blocks every known hosting and VPN network. All three work in every mode, and Always Allowed Addresses always wins.
What is removed on uninstall?
Deleting the plugin removes its statistics tables, settings, cached summary, database metadata, build lock, scheduled tasks and downloaded database files. Cleanup runs for every site on multisite. Unrelated files in the database folder are left alone. Shared DevDome library data is kept while another installed DevDome plugin needs it. Deactivation keeps the plugin’s data and removes its schedules.
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati