Geo-location: country targeting, age per country and region blocking
Show the gate only where it's needed, set a different age per country, and block countries, states, VPNs and Tor.
On this page
Open Age Verification → Geo-Location and switch on Use geo-location.
How the visitor’s location is found
Location source is Automatic by default. The plugin checks, in order:
- Cloudflare headers
- WooCommerce’s MaxMind database
- The free GeoJS service
Each visitor’s result is remembered for one day.
Warning: Behind Cloudflare or another proxy? Set up Security & Lockout → Visitor IP detection first, so geo-location receives the visitor’s real IP. See Security and lockout.
Show the gate only in some countries
Add countries to Show the gate only in these countries. Visitors from other countries skip it. Leave the list empty to show the gate everywhere.
Set an age per country
Under Minimum age per country, click + Add country — for example United States 21 and Japan 20. Countries you don’t list use the age from the General tab. For per-state ages, or a different check type per country, use region rules.
Block regions
- Add entries to Blocked countries and Blocked states / provinces.
- Blocked visitors see an Access restricted screen, or are sent to a redirect URL.
- The message supports a
{region}placeholder, which shows the country or state.
Block VPNs, proxies and Tor
Switch on Block VPNs, proxies and Tor and add a proxycheck.io API key. The free tier covers up to 1,000 new visitors a day. If the service can’t be reached, nobody is blocked.
Good to know
- Administrators are never blocked.
- Pages that depend on the visitor’s country are kept out of page caches automatically.