The SDLC Country Block plugin lets you restrict access to individual posts and pages based on the visitor’s country, while keeping SEO bots and crawlers unblocked for safe indexing.
To ensure maximum compatibility, the plugin checks for the visitor’s country in this order:
1. Cloudflare header (CF-IPCountry)
2. Server GeoIP variables (if your hosting environment provides them)
3. PHP GeoIP extension (geoip_country_code_by_name)
4. Wordfence plugin (using Wordfence GEO detection)
⚠️ Note: At least one of these extensions or plugins must be enabled. If none are active, the plugin cannot detect visitor countries.
Vary: CF-IPCountry for cache correctnessThis plugin is maintained by SDLC CORP — a Digital Transformation Company with expertise in:
– WordPress Development
– Shopify Solutions
– Artificial Intelligence (AI) & Machine Learning
– Model Development and NLP (Natural Language Processing)
– Enterprise-grade AI Development Services
By publishing this open-source plugin, SDLC CORP demonstrates its commitment to empowering developers and businesses with scalable AI-driven solutions and modern web technologies.
For the plugin to work, at least one of the following extensions or plugins must be enabled on your server:
CF-IPCountry header).GEOIP_COUNTRY_CODE).geoip extension on your server (may require server admin/hosting support).➡️ At least one of these must be active. If none are available, the plugin cannot detect visitor countries.
This plugin is designed to work with third-party services such as Cloudflare and Wordfence when available.
SDLC Country Block is an independent plugin and is not affiliated with or endorsed by Cloudflare or Wordfence.
This plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License, or (at your option) any later version.
This plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
A copy of the GPL v2 license is included in this package. You can also see https://www.gnu.org/licenses/gpl-2.0.html.
“SDLC CORP” and the SDLC CORP logo are trademarks of SDLC CORP.
The GPL license covers the plugin’s source code. It does not grant rights to use SDLC CORP’s trademarks or branding in modified versions in a way that suggests endorsement or affiliation without permission.