# 地理屏蔽插件

**URL:** https://meta.discourse.org/t/geo-blocking-plugin/227824
**Category:** Plugin
**Created:** [2022年五月23日 09:43 UTC](https://meta.discourse.org/t/geo-blocking-plugin/227824 "2022-05-23T09:43:22Z")
**Posts on this page:** 1
**Showing post:** 36

<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: [2026年三月15日 03:15 UTC](https://meta.discourse.org/t/geo-blocking-plugin/227824/36 "2026-03-15T03:15:36Z")

</div>

是的，如果您遵循指南 [Using Discourse with Cloudflare: Best Practices](https://meta.discourse.org/t/using-discourse-with-cloudflare-best-practices/293405#p-1444851-additional-configuration-for-self-hosted-installations-13) 可以实现。

> [@LotusJeff](#):
>
> Cloudflare 在 CF-IPCountry 标头变量中传输 IP 地址。

这是不正确的。Cloudflare 在该标头中传输国家/地区代码，而不是 IP 地址，并且仅在您启用它时才发送。但是，该插件不使用该标头，它使用的是 Discourse 内部的 Maxmind 数据库。

---

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