What's new
Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Welcome to My Sharing Site

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Resource icon
xF2 Add-on
< Previous | Next >
This XenForo 2.1 addon provides Geoblocking capabilities for user registration.

You can set allowed and denied lists for countries based on the IP address a user registers from - and optionally force users from non-approved countries into the moderation queue when registering.

The addon uses the free Maxmind GeoLite2 downloadable IP database to identify the country associated with the IP address of a registering user.

As an example, a typical use-case for this addon might be for an Australian website to allow users from Australia and New Zealand to be approved automatically, while users from, say, Russia, Nigeria and other common sources of spammers are blocked from registering. Users from all other countries can be placed into the moderation queue for manual approved by moderators.

GDPR block

A "Reject EU Registrations" option can be enabled to automatically block registrations from any countries within the European Union, which may help minimise risk for sites which are not serving EU members and do not intend to implement full GDPR support. Note that existing registered users will be unaffected by this setting - it only applies at registration.

This option will be over-ridden by Approved and Denied lists, which can be useful for cases such as the UK, where they are technically still part of the EU until Brexit occurs, so by adding "GB" to the Approved list, you can avoid blocking people from the UK while blocking everyone else in Europe.

Of course, users can always use a proxy server to get around these blocks - but at least you've made a concerted effort to block EU members - which is all you can do.

The message a user will receive when their registration is rejected because of the EU block is "Your registration has been rejected because we do not allow people from the European Union to use our site. Please contact the administrator for further information or assistance."

Installation

1. Install the addon using the standard installation mechanisms. The addon will create a single database table for caching of IP address lookup data.

2. Be sure to add some approved and denied countries to the configuration options - see below.

3. Download the GeoLite2 database using the "Update Maxmind Database" function, which can be found under the Tools menu in the admin area. The database is updated by Maxmind weekly and will be automatically downloaded every week using a cron task.

You must have the Phar extension enabled on your server for database download and extraction to function.

Configuration options
  • 1577954773085.png
    1577954773085.png
    97.5 KB · Views: 11
  • 1574938003404.png
    1574938003404.png
    69.2 KB · Views: 10
  • 1574937903207.png
    1574937903207.png
    38.5 KB · Views: 8
  • 1574937743360.png
    1574937743360.png
    28.8 KB · Views: 10

Latest updates

  1. Geoblock Registration 1.2.2

    Minor bugfix to explicitly enforce admin permissions on admincp tools updated icon latest...
  2. Geoblock Registration 1.2.1

    This update only contains the latest composer dependencies, there has been no change to the...
  3. Geoblock Registration 1.2.0

    bugfix: don't try to uppercase a null iso_code php 8 compatibility fix: don't set a default...
Similar resources Most view View more
Top