WPLocation

Country-aware content for WordPress

  • Features
  • Demo
  • Add-ons
  • Pricing
  • Blog
  • Account
  • Get WPLocation
← All documentation/Install and set up WPLocation
Free

Install and set up WPLocation

For the current website releases: Free 1.1.3 and Pro 1.3.0.

On this page
  1. Before you start
  2. Install and activate the plugin
  3. Configure country detection
  4. Create and test a first rule
  5. Check caching and unknown locations
  6. Add Pro when your store needs it
Free setupPro & licensingMy account & downloads

Start with WPLocation Free 1.1.0, connect a country source, then save and test one audience. Free works on its own; Pro uses the same country engine for WooCommerce.

Upgrading the original standalone 1.0.0? Prepare your current private database with the legacy upgrade steps before replacing the old plugin. A normal folder replacement removes its bundled database.

Before you start

  • Use WordPress 6.8+ and PHP 8.3+. The initial tested scope is single-site WordPress 6.8.3 and 7.1.3 on PHP 8.3.
  • Back up your site and try the setup on staging first.
  • Have a current, licensed GeoLite2 Country MMDB or your own MaxMind account ready. No country database is bundled.

Install and activate the plugin

  1. Download WPLocation Free. The download form offers a no-email option. Free needs no paid WPLocation license key.
  2. In WordPress, open Plugins → Add Plugin → Upload Plugin. Choose the Free ZIP, select Install Now, then Activate.
  3. Open WPLocation. You will find the content-rule screens, Shortcodes, Settings, Diagnostics and Activity Log.

Configure country detection

Open WPLocation → Settings and choose one of these paths:

Use your MaxMind account

Select Use MaxMind, enter your account ID and MaxMind license key, then select Save account. Choose an existing writable private directory outside the public web root. Review the download consent and select Download and select MaxMind.

MaxMind setup walkthrough →

Use an existing private file

Under Local database, enter the absolute path to a current, readable GeoLite2 Country MMDB you are licensed to use, then choose Select this database. Keep it outside the web root and plugin directory.

Database maintenance guide →

Use WPLocation → Diagnostics to confirm a readable GeoLite2-Country source, review its build date and test a public IP address you are permitted to test. Resolve source errors before relying on a country rule.

Two different keys: a MaxMind key authorizes database downloads from MaxMind. A WPLocation Pro key activates paid Pro updates and support. They are not interchangeable. Local visitor lookups need no WPLocation credits.

Automatic database updates are opt in. After checking the source, enable Enable daily database update checks in Settings if wanted, then Save update settings. WP-Cron needs site traffic or a configured server cron.

Create and test a first rule

  1. Create and save a test page in WordPress.
  2. Open WPLocation → Pages, find the page and select its title.
  3. Choose Only selected countries or Everywhere except selected countries. Select at least one country and review the audience summary.
  4. Select Save visibility. Under Check the saved result, choose one allowed country and one denied country.
  5. To remove the restriction, choose Everyone and save. The current editor requires at least one country for a restricted audience; do not use a blank selection as a setup step.
Actual WPLocation Free page-audience editor using demo content for Canada and the United States.
Actual Free 1.1.0 editor with demo content. Select the image to enlarge it.

Check caching and unknown locations

Purge your page and CDN caches, then test the public URL from an allowed and denied location. Repeat the requests after the cache has been populated. A saved-rule test checks the rule; it does not prove that the public cache serves the right result.

Unknown countries are hidden by an active restriction. A blocked singular Free page or post returns your theme’s 404 response. Unrestricted content remains available. IP location is approximate and cannot secure confidential information.

Follow the cache checklist and troubleshooting steps if the public result differs.

Add Pro when your store needs it

For WooCommerce product and product-category audiences, install Pro as a second plugin and keep Free active. Follow Pro installation and licensing. For content-only work, continue with page rules, the Country visibility block or shortcodes.

Where to next?

Choose the right country rule →Check your cache and CDN →Browse all guides →
Need help with this guide?

Contact WPLocation with your software versions and the result you expected. Keep keys and customer data private.

Company

  • About us
  • Contact
  • Terms & Conditions
  • Privacy Policy

Product

  • Features
  • WPLocation Pro
  • Pricing
  • Add-ons roadmap
  • Get WPLocation

Resources

  • Blog
  • Documentation
  • Installation
  • Shortcodes
  • Changelog

Account & Support

  • My Account & Licenses
  • Contact Support
  • Blocked-content behavior

Copyright © 2026. WPLocation is a project of TechAbout LLC.
Questions? [email protected]