Geo-blokkeringsplugin

What could we guess… 98% of those are bots :winking_face_with_tongue: To show or not to show a message… it depends. If there is need to guide geoip-blocked real humans to use VPN, then showing the reason is smart move. Waste of time with bots, though.

1 like

The plugin was originally made to enforce economic sanctions against specific countries.

2 likes

This gives now error 500. It goes nicely thru rebuilding, though.

Is it fixable, please?

Otherwise I have to install Nginx to act as a reverse proxy, and then I would be too afraid to ask any support here ever :joy:

Opgelost

@juanjosegzl raad eens dat je LLM te enthousiast was en we hebben je PR niet goed genoeg getest

1 like

Sorry, ik heb dat niet begrepen, ik was te gefocust op mijn eigen use case

1 like

Sorry, there is still issues.

Ik heb de meest recente PR naar de plugin teruggedraaid en zal deze over een paar weken opnieuw bekijken als ik tijd heb. Sorry allemaal voor het ongemak.

2 likes

Zo gebeurt het. Maar die plugin is echt nodig. Bedankt voor uw inspanningen.

1 like

Sorry voor alle problemen, ik heb de wijzigingen opnieuw bekeken en een probleem met moderatie gevonden, nu heb ik het opgelost

Richard Ik heb de wijzigingen doorgevoerd, in feite het moderatieprobleem opgelost en de cache uitgeschakeld wanneer moderatie-instellingen worden gewijzigd.

2 likes

Bedankt! Ik ben momenteel aan het reizen en zal de PR over 10 dagen opnieuw bekijken.

It works for me. Geoblocking itself I haven’t tested yet.

Well, my anonymous user got too fast typing, what is funny becuse I’m on iPad with virtual keyboard :joy: but that has nothing to do with this plugin.

Thanks.

2 likes

@juanjosegzl Ik heb je laatste PR nu samengevoegd. Bedankt voor je nuttige bijdrage!

1 like

Does this work if you are using cloudflare?

Cloudflare transmits the IP address in the CF-IPCountry header variable.

Yes it works if you follow the guide Using Discourse with Cloudflare: Best Practices

This is incorrect. Cloudflare transmits the country code in that header, not the IP address, and only if you’ve enabled it. The plugin does not use that though, it uses the internal Discourse Maxmind database.

Hello, the plugin is great. I have a small request: Can we add a configuration to customize the prompt messages?

Oh, I see. The /admin/customize/site_texts website text feature can be used, so no additional configuration is needed.

1 like

Hi, I’d like to know how to configure access for specific IPs within restricted regions.

I’ve created a pull request:
add ip whitelist by singi2016cn · Pull Request #8 · communiteq/discourse-geo-blocking

1 like

Thank you for that PR. I have responded to it. The functional enhancement is very welcome but not at the expense of making an extra database call for every single request. If you move the code inside the lazy loaded cache block then we can accept it.

2 likes

Okay, I’ve identified the issue. I’ll resubmit the merge request after making the changes. Please take another look.

1 like