Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/code-caste/codecaste-country-access-control/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Restrict front-end access by visitor country using a local IP geolocation database. No external APIs are required at runtime.

Features
- Country allowlist or blocklist for front-end visitors
- Local IP geolocation database (no third-party API calls at runtime)
- Crawler-aware handling for legitimate bots
- Admin settings, logging, and cache controls
- Built for WordPress sites that need simple geo access control
Requirements
- WordPress 5.8+
- PHP 7.4+
Installation
- Download or clone this repository into
wp-content/plugins/codecaste-country-access-control - Activate Country Access Control by CodeCaste in WordPress
- Open the plugin settings to choose allowed or blocked countries
WordPress.org
- Slug:
codecaste-country-access-control - Plugin page: https://wordpress.org/plugins/codecaste-country-access-control/
Repository
- GitHub: https://github.com/code-caste/codecaste-country-access-control
- Maintainer: Bhushan-Gohel
- Website: CodeCaste
License
GPLv2 or later — see LICENSE.