Country restricted page

XF2 Addons Country restricted page 1.1
Allows page access only to countries specified in options page.

Compatible versions
2.0, 2.1, 2.2
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
  • Like
Reactions: notgabry
FateKid
Author FateKid
Level
11
6,835 pts
1.1 Version
0 Downloads
403 Views
Published
Updated
0.00 star(s) 0 ratings Average Rating (0)

More files from FateKid

Top Bottom