Geo Blocking
This is a Pro feature. Geo-blocking blocks all visitors - not just bots - from selected countries.
Enable under Settings → ScraperBlock → Advanced → Geo-blocking, then select the Blocked Countries.
Settings
| Setting | Default | Description |
|---|---|---|
| Geo-blocking | Off | Block visitors from the selected countries |
| Blocked Countries | None | Countries to block |
Country Detection
ScraperBlock Pro reads the visitor's country from Cloudflare's CF-IPCountry request header.
Geo-blocking only works when your site is behind Cloudflare (with IP Geolocation turned on in Cloudflare). Without that header, the country is unknown and no one is geo-blocked. ScraperBlock Pro doesn't use WooCommerce or MaxMind geolocation for this.
Blocked visitors receive 403 Forbidden and are logged with the reason geo_blocked. The Geo Map and Geo Breakdown on the Analytics tab use the same header.
Geo-blocking blocks real customers too. Use it only for countries you don't serve at all. For WooCommerce product-level country rules, see WindCodex GeoBlock.