# Ability to Block Discourse Access from Geographic Regions or Countries

**URL:** https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112
**Category:** Feature
**Created:** [4월 15, 2019, 2:37오후 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112 "2019-04-15T14:37:19Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![geek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geek/32/102154_2.png) [@geek](https://meta.discourse.org/u/geek)
#### Post date: [4월 15, 2019, 2:37오후 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/1 "2019-04-15T14:37:19Z")

</div>

Continuing the discussion from [EU Copyright Directive just passed through Parliament](https://meta.discourse.org/t/eu-copyright-directive-just-passed-through-parliament/97025):

> **[Europe backs copyright overhaul that threatens to hit YouTube and Facebook hard](https://www.cnbc.com/2019/04/15/article-13-eu-council-backs-copyright-law-that-could-hit-youtube-fb.html)**
>
> The legislation has been criticized by Google and internet freedom campaigners who worry it will result in censorship.

> **[Europe's New Copyright Law Could Be Bad for Memes](https://www.wired.com/story/europes-new-copyright-law-could-bad-memes/)**
>
> The European Parliament approves a sweeping new copyright directive aimed at tech platforms like Google and Facebook.

> **[German Data Privacy Commissioner Says Article 13 Inevitably Leads to Filters,...](https://www.eff.org/deeplinks/2019/03/german-data-privacy-commissioner-says-article-13-inevitably-leads-filters-which)**
>
> German Data Privacy Commissioner Ulrich Kelber is also a computer scientist, which makes him uniquely qualified to comment on the potential consequences of the proposed new EU Copyright Directive. The Directive will be voted on at the end of this...

The EU Copyright directive and censorship system was just passed, and it’s pretty lousy. The full impact is still unknown, but the main problems we know of now are:

- Required filtering system for anything that could possibly be copyrighted. This at least is restricted to more popular sites. But what about a forum that’s part of a larger site? Unclear
- Link tax - Linking and excerpting to a site and including anything over a couple of words is not allowed. Unless I’m mistaken, this applies to all sites, not just large ones.

One of the constants in forum discussions is linking to other sites and quoting from their articles to further the discussion. This has always been considered Fair Use, unless people are posting the entire contents of an article (which also happens frequently and should be moderated).

My suggestion is to add this feature to Discourse:

- Allow blocking of viewing or using the forum from a list of geographic regions, such as Europe. Ideally with a message to display to those people.
- Allow restrictions on where user accounts can be added from.

These could be useful either way if you get a lot of spam from a particular region that would not realistically be reading your forum.

(I’m going to be moving my forum behind Fastly anyway, and I’ll handle this there instead. Just giving feedback)

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [4월 15, 2019, 3:02오후 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/2 "2019-04-15T15:02:48Z")

</div>

> [@geek](#):
>
> Required filtering system for anything that could possibly be copyrighted. This at least is restricted to more popular sites.

As far as I was aware, any site over three years old is caught by this article of the Directive - not just popular sites.

---

<div class="post-metadata">

### Author: ![geek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geek/32/102154_2.png) [@geek](https://meta.discourse.org/u/geek)
#### Post date: [4월 15, 2019, 3:04오후 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/3 "2019-04-15T15:04:39Z")

</div>

Well that makes it much worse, I guess, if that’s the case. I know the exact details kept changing a little bit, and the member states can implement their own exact versions of the rules — which makes it worse, IMO, because every country there will have slightly different rules. How can anybody navigate that?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4월 15, 2019, 11:52오후 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/4 "2019-04-15T23:52:30Z")

</div>

It’s been discussed but it is a complex thing to build, and we’d only build it for enterprise customers who absolutely required it.

There are one or two relatively minor related feature things Discourse would gain out of implementing this, but it’d be a _lot_ of work, so the cost/benefit is not quite there outside enterprise.

@sam might have more to add. This is not currently on our roadmap, to be clear, because the enterprise customers who “needed” this suddenly decided they didn’t when we told them the cost 😉

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [4월 16, 2019, 12:13오전 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/5 "2019-04-16T00:13:20Z")

</div>

With the availability of VPN services the user of geographic blocks doesn’t achieve anything. A user originating from Europe on a VPN still exposes you to the same risks. If any part of the traffic passes through europe, it can be considered as included.

Member countries have yet to turn the EU ruling into local laws, and if GDPR is anything to go by they’re free to interpret the EU wording to the limits of the language.

Just like GDPR this is a problem without an easily navigable solution.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [4월 16, 2019, 12:18오전 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/6 "2019-04-16T00:18:30Z")

</div>

Technically now that we ship the maxmind db out of the box, this kind of feature would only take a few weeks to build.

Caveats being:

1. NGINX would not do any blocking so “anon requests” would unconditionally have to be funneled through the app which would cause perf issues.

2. CDN support would be tricky, most CDNs out there don’t support a mechanism for this so it is likely you would not be able to use most CDNs.

I don’t see us building this though cause it goes against a lot of our principles. Closet feature I can see us building is “self service, best effort **strong** IP block” (aka. if your IP matches list then application will return an access denied prior to walking through all the app code) cause this can allow all sorts of forums to protect themselves a bit better against abuse beyond the rate limiting we ship.

If you really really deem that you need this, why not drive all your traffic via cloudfront and have it do it for you?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [4월 16, 2019, 12:38오전 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/7 "2019-04-16T00:38:11Z")

</div>

To be clear though, it’s not just about blocking visitors, it’s about sites embedding re-using or embedding content _from_ EU entities.

That’s why the YouTube geoblock is useless, rights holders could still identify their content being shared with other audiences worldwide.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [4월 16, 2019, 12:45오전 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/8 "2019-04-16T00:45:59Z")

</div>

@Stephen totally understood, from reading:

> [@geek](#):
>
> My suggestion is to add this feature to Discourse:
> 
> - Allow blocking of viewing or using the forum from a list of geographic regions, such as Europe. Ideally with a message to display to those people.
> - Allow restrictions on where user accounts can be added from.

My guess is that @geek is simply saying, “I don’t want to think about this problem, I am worried Europe are going to put me out of business, can I have this feature please”

I think there is a lot of uncertainty when new laws pass, some of us are a lot more risk averse than others

The last thing I want is for this topic to devolve into one of those GDPR scare topics. Where 1 side is saying “Don’t worry be happy” and the other side is saying “The sky is falling”.

Happy to talk about what Discourse can technically do and what we have in our roadmap.

⚠ Warning though for all the readers here, cause we are just in post 7 and this my spidey sense is tingling real bad. 🕷

Lets stay laser focused on discussing:

“Ability to Block Discourse Access from Geographic Regions or Countries”

---

<div class="post-metadata">

### Author: ![geek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geek/32/102154_2.png) [@geek](https://meta.discourse.org/u/geek)
#### Post date: [4월 16, 2019, 12:49오전 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/9 "2019-04-16T00:49:47Z")

</div>

The only thing I’m saying is that an option to block the entire forum at a country level would be nice. That would neatly solve the issue entirely for anybody that doesn’t want to navigate the legal issues. If you don’t operate in a country you aren’t subject to its laws.

I don’t actually need this personally, as I mentioned in my original post.

Was just giving feedback.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [4월 16, 2019, 2:18오전 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/10 "2019-04-16T02:18:54Z")

</div>

> [@sam](#):
>
> My guess is that @geek is simply saying, “I don’t want to think about this problem, I am worried Europe are going to put me out of business, can I have this feature please”

Yep, I get that, but as I said geo-blocking EU users doesn’t achieve that.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [4월 16, 2019, 6:51오전 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/11 "2019-04-16T06:51:50Z")

</div>

> [@geek](#):
>
> Link tax - Linking and excerpting to a site and including anything over a couple of words is not allowed. Unless I’m mistaken, this applies to all sites, not just large ones.

Don’t believe this is correct.

First, it’s not a tax, so let’s drop the fear-mongering ‘spin’.

The data in the open graph tags is much more than a couple of words. Given its purpose, despite not being a lawyer (@angus), my hunch is that there exists an implicit licence to use this data as previewing remotely is exactly what it’s meant for. If they didn’t want you to use this text, why include it in their open graph tags? We might need this tested in court to confirm, though why someone would bring a case against you for linking to their site using their link data is anyone’s guess!

I suspect therefore oneboxing will continue to not require an explicit licence.

I will certainly continue to do so without any fear of repercussions.

I appreciate quoting from arbitrary points in the main text is going to be a bit more tricky.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [4월 16, 2019, 6:55오전 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/12 "2019-04-16T06:55:52Z")

</div>

If you dig through the legalese they’re mostly concerned with lifting enough of an excerpt to negate the need to click through to the article.

Opengraph is neither the problem nor the solution. As previous EU decisions it will be down to individual member states as to how this manifests into enforceable laws.

But yes that’s the crux of it, they’re concerned with publisher to publisher, not audience.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [4월 16, 2019, 6:57오전 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/13 "2019-04-16T06:57:01Z")

</div>

> [@Stephen](#):
>
> If you dig through the legalese they’re mostly concerned with lifting enough of an excerpt to negate the need to click through to the article.

And that is at their discretion because they determine the link excerpt.

All blown out of proportion!!

---

<div class="post-metadata">

### Author: ![vitorl](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@vitorl](https://meta.discourse.org/u/vitorl)
#### Post date: [4월 20, 2019, 4:40오전 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/14 "2019-04-20T04:40:35Z")

</div>

Easy:

1. Add your site to Cloudflare
2. Block any country you want
3. Enjoy your CDN and hiding your server ip for free
4. ??? profit

The only thing you lose is the ability to see the real IP of users if you are using a reverse proxy + cloudflare, but that can probably be fixed too if you really care about it.

Maybe there are other CDN’s that can do it, but with a free CDN like Cloudflare that can serve the needs of like 90% of the websites for free I don’t see a reason to look for another one.

---

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [4월 20, 2019, 10:40오전 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/15 "2019-04-20T10:40:03Z")

</div>

Does someone really believe, that blocking will solve anything?

It’s a regulatory / compliance question, that will be addressed sooner or later by legislation due international free trade and copyright agreements.

In my opinion, we need to talk about risk management and watch dog processes instead of [over-blocking](https://de.m.wikipedia.org/wiki/Overblocking) and the [chilling effects](https://en.m.wikipedia.org/wiki/Chilling_effect).

---

<div class="post-metadata">

### Author: ![adorfer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adorfer/32/82089_2.png) [@adorfer](https://meta.discourse.org/u/adorfer)
#### Post date: [2월 17, 2020, 5:50오후 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/16 "2020-02-17T17:50:57Z")

</div>

> [@terraboss](#):
>
> 정말 누군가가 차단이 문제를 해결한다고 믿는 건가요?

이 스레드를 정치적 논쟁으로 돌린 분들께는 고맙습니다.

지금은 GeoIP DB를 사용하여 특정 지역으로부터의 Discourse 접근을 차단하는 기술적 구현(플러그인)이 제공되고 있나요?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2월 17, 2020, 6:04오후 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/17 "2020-02-17T18:04:57Z")

</div>

아니요, 그런 것은 없습니다. 그것은 나쁜 아이디어이며, 사람들은 그런 것에 시간을 들이는 경우가 거의 없습니다.

정말 중요하다면, 애플리케이션 앞에 무언가를 구현해야 합니다.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2월 17, 2020, 6:44오후 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/18 "2020-02-17T18:44:32Z")

</div>

가장 좋은 선택지는 아마도 Cloudflare일 것입니다. Cloudflare를 선택할 경우, 속도 향상 서비스가 Discourse를 깨뜨리지 않도록 여러 가지 조치를 취해야 합니다. 이에 대한 주제들이 여러 개 있습니다.

---

<div class="post-metadata">

### Author: ![opcourdis](https://avatars.discourse-cdn.com/v4/letter/o/45deac/32.png) [@opcourdis](https://meta.discourse.org/u/opcourdis)
#### Post date: [6월 16, 2025, 12:34오후 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/19 "2025-06-16T12:34:15Z")

</div>

iptables에서 geoip 블록 규칙을 사용하지 않는 이유는 무엇인가요?

유지 관리나 cron 없이 쉽게 실행하려면: [GitHub - friendly-bits/geoip-shell: User-friendly and versatile geoblocker for Linux · GitHub](https://github.com/friendly-bits/geoip-shell)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [6월 16, 2025, 2:10오후 UTC](https://meta.discourse.org/t/ability-to-block-discourse-access-from-geographic-regions-or-countries/115112/20 "2025-06-16T14:10:58Z")

</div>

이제 이 기능이 있습니다: [Geo Blocking 플러그인](https://meta.discourse.org/t/geo-blocking-plugin/227824)
