What could we guess… 98% of those are bots
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.
The plugin was originally made to enforce economic sanctions against specific countries.
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 ![]()
Fixed
@juanjosegzl guess your LLM was too enthousiastic and we both didn’t test your PR well enough
Sorry I did not catch that, I was too focused on my own use case
Sorry, there is still issues.
I have reverted the most recent PR to the plugin and I will reconsider it in a few weeks when I have time. Sorry all for the inconvenience.
S…uch happens. But that plugin is really needed. Thanks for your efforts.
Sorry for all the problems, I re visited the changes and I found an issue with moderating, now I have fixed it
Richard I pushed the changes, basically fixing the moderating issue and disable cache when moderating settings are changed.
Thank you!
I am currently traveling and I will revisit the PR in 10 days from now.
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
but that has nothing to do with this plugin.
Thanks.
@juanjosegzl I have now merged your latest PR. Thank you for your useful contribution!
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.
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
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.
Okay, I’ve identified the issue. I’ll resubmit the merge request after making the changes. Please take another look.