- XF 兼容性
- 2.2.x
- 摘要
- Blocks registration for specified countries using ipstack.com and internal table. Setup involves signing up for ipstack's free plan, entering access key and country codes. View blocked countries via custom URL. Database includes andycountryregistration_check table. For blocking, enter codes in Blocked field; allow only by leaving Allowed field empty. Last 24 hours of registration history shown.
Description:
Blocks registration to specified countries.
Features:
- Uses ipstack.com for accurate country locations.
- Uses internal table for recent IP locations.
- All phrases start with countryregistrationcheck_ for your convenience.
- Navigate to Sign Up - ipstack and sign up for their free plan.
- Enter access key into options page.
- Enter country codes into options page.
You view a list of blocked countries, add 'countryregistrationcheck' to your forum URL. Must be an admin to view this page.
Database changes:
A table called andy_country_registration_check is created in your database.
Questions and Answers:
Q: I want to block a few countries.
A: Enter those country codes into the Blocked country codes field. Leave the Allowed country codes field empty.
Q: I want to allow only a few countries.
A: Enter those country codes into the Allowed country codes field. Leave the Blocked country codes field empty.
Q: How far back in time does the country registration page show?
A: The last 24 hours.