תוסף לחסימת גאוגרפיה

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

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

2 לייקים

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:

תוקן

@juanjosegzl נראה שה-LLM שלך היה נלהב מדי ולא בדקנו מספיק את ה-PR שלך

לייק 1

מצטער, לא הבנתי, הייתי מרוכז מדי במקרה השימוש שלי

לייק 1

Sorry, there is still issues.

החזרתי את ה-PR האחרון לתוסף ואשקול אותו מחדש בעוד מספר שבועות כשתהיה לי הזדמנות. מצטער על אי הנוחות לכולם.

2 לייקים

קורה… אבל התוסף הזה באמת נחוץ. תודה על מאמציך.

לייק 1

מצטער על כל הבעיות, בדקתי מחדש את השינויים ומצאתי בעיה עם מיתון, כעת תיקנתי

ריצ’רד דחפתי את השינויים, בעיקר תיקון בעיית המיתון והשבתת המטמון כאשר הגדרות המיתון משתנות.

2 לייקים

תודה! אני כרגע בנסיעה ואחזור ל-PR בעוד 10 ימים.

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 לייקים

@juanjosegzl מיזגתי כעת את ה-PR האחרון שלך. תודה על תרומתך המועילה!

לייק 1

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.