Country restricted page

Country restricted page 1.1

No permission to buy ($35.00)
Compatible XF 2.x versions
  1. 2.0
  2. 2.1
  3. 2.2
Premium upgrade:

This XF2 add-on along with the entire collection can be purchased for $35.00 USD. Your Premium upgrade will allow you to download as many XF2 add-ons as you like for one year. Please see the entire collection located in the Resources area at this URL:

https://www.xf2addons.com/

Description:

Allows page access only to countries specified in options page.

(Example of Options page)

pic001.jpg


(Example of error message)

pic002.jpg


Features:
  • Uses ipapi.co for accurate country locations.
  • All phrases start with countryrestrictedpage_ for your convenience.
Setup:
  1. Enter Allowed country codes into options page.
  2. Enter Node ID into options page.
Questions and answers:

Q: How can I get the Node ID?
A: Go to the following location:

Admin control panel -> Forums-> Nodes

Hover over Page title, you will see the Node ID in the URL shown at the bottom of the browser.

Q: Where can I get a list of country codes?
A: Here's a link to the Alpha-2 country codes:

https://en.wikipedia.org/wiki/ISO_3166-1
Author
AndyB
Views
535
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from AndyB

Latest updates

  1. See description

    Country restricted page v1.1 changes: Now using ipapi.co for country lookup.

Latest reviews

An excellent add-on once again from the XF2 Addons collection.
If you are running a XenForo forum, $35.00 to access the massive collection of add-ons will be one of the best purchases you will make.
Top