XI/TAG for WordPress

One small plugin, many tools you switch on per site. Version 0.2.0 includes the Country Blocker: allow or block visitors by country, with a local database, verified search engine bots and a travel bypass link.

Early release. Try it on a test copy of your site first.

What the Country Blocker does

  • Allow only the countries you choose, or block the ones you name.
  • Checks visitors against a free local database, so no visitor IP address leaves your server.
  • Google, Bing and Apple bots are verified by reverse DNS and always let through. Facebook, X, LinkedIn, Pinterest, Slack and WhatsApp link previews keep working.
  • Logged-in users, allowed IP addresses and allowed paths are never blocked.
  • A warning if your own address would be blocked, a “test an IP” box and a private travel bypass link.

Install

  1. In WordPress, go to Plugins, Add New, Upload Plugin. Choose xitag.zip and activate it.
  2. Open XiTag, Modules, tick Country Blocker and save.
  3. Open XiTag, Country Blocker. Click Download database now, check your settings and save.
  4. Copy your travel bypass link somewhere safe.

Good to know

Blocking runs in PHP. If your host serves a page from its own cache without starting WordPress, that page is not checked, so confirm it works with a test from another country. Country data is the free IP to Country Lite database from DB-IP, licensed CC BY 4.0, and the plugin can show a small attribution link in your footer. Before a database is installed the plugin can use the free api.country.is lookup, which does send visitor IP addresses to that service. This plugin is provided as is, without warranty. See our Terms of Use and Privacy Policy.