# Geo Blocking plugin

**URL:** https://meta.discourse.org/t/geo-blocking-plugin/227824
**Category:** Plugin
**Created:** [May 23, 2022, 9:43am UTC](https://meta.discourse.org/t/geo-blocking-plugin/227824 "2022-05-23T09:43:22Z")
**Posts on this page:** 1
**Showing post:** 42

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [May 9, 2026, 5:03am UTC](https://meta.discourse.org/t/geo-blocking-plugin/227824/42 "2026-05-09T05:03:44Z")

</div>

> [@singi2016cn](#):
>
> When both geo\_blocking\_country\_region\_blocklist and geo\_blocking\_country\_region\_allowlist are configured, only geo\_blocking\_country\_region\_allowlist should be evaluated. If it is not configured, then geo\_blocking\_country\_region\_blocklist should be evaluated.

PR welcome if you do the following to make it backwards compatible with the current functionality:

Add an extra setting “block all except allowlist” and only when that setting is enabled it will behave like you describe.

---

_[View the full topic](https://meta.discourse.org/t/geo-blocking-plugin/227824)._
