A Discourse plugin to restrict access to users whose IP matches a given list of ISO 3166-1 alpha 2 countries or Geoname IDs.
Site Settings:
site setting | description |
---|---|
geoblocking_enabled |
Enable plugin; restrict access to content based upon the user's geographical location. |
geoblocking_blocked_redirect |
Redirect blocked requests to this URL. An error page will be shown if this is unset |
geoblocking_blocked_countries |
List of country codes that are blocked |
geoblocking_allowed_countries |
List of country codes that are allowed. geoblocking_blocked_countries and geoblocking_blocked_geoname_ids are ignored if this site setting is present |
geoblocking_blocked_geoname_ids |
List of Geoname IDs (region codes) that are blocked |
geoblocking_allowed_geoname_ids |
List of Geoname IDs (region codes) that are allowed. geoblocking_blocked_countries and geoblocking_blocked_geoname_ids are ignored if this site setting is present |
MIT