WPLocation – Geolocation and Country Rules
WPLocation is a free WordPress geolocation and geotargeting plugin for country-based content. Show the right post, page or content section to a visitor’s detected country using a local GeoLite2 Country database. What you can do with Free Set include or exclude country audiences for WordPress posts,
WPLocation is a free WordPress geolocation and geotargeting plugin for country-based content. Show the right post, page or content section to a visitor’s detected country using a local GeoLite2 Country database.
What you can do with Free
- Set include or exclude country audiences for WordPress posts, pages and categories.
- Show selected sections with the Country visibility block in the WordPress block editor.
- Use [wplocation_target] for country-based conditional content and [wplocation_country] to display the detected country.
- Search country choices, review a saved audience and test a country decision before checking the real page.
- Check your local source and database build date in Diagnostics.
- Use your own current licensed country database without a paid WPLocation key or visitor lookup credits.
Practical examples
Show a regional announcement on a shared page, display a country-specific message, or limit a published page to selected countries. Keep useful general content outside targeted sections. IP location is approximate: country visibility is personalization, not a firewall or access control for confidential content.
Set up your first country rule
Install Free and open WPLocation > Setup guide. Choose an existing licensed GeoLite2 Country .mmdb outside the public web directory, or explicitly connect your own MaxMind account and download one. Check Diagnostics and create a page audience or Country visibility block. Test allowed, denied and unknown locations and your actual page cache. Follow the illustrated setup guide: https://wplocation.com/documentation/installation/.
Free, Pro and add-ons
Free works independently and is distributed and updated through WordPress.org. Pro and specialist add-ons are separate plugins sold by WPLocation.com; keep Free active with Pro. Pro adds WooCommerce rules, Geo Redirects, Markets, Forms & Campaigns and opt-in Geo Analytics. Pro 1.4.5 or newer requires PHP 8.3. No paid feature implementation is locked inside Free.
SEO and cache behavior
Country visibility does not create translations, regional URLs or hreflang tags and does not guarantee search rankings. A crawler outside a whole-page audience can receive a 404, and a targeted section may be absent from its view. Use discoverable regional URLs when needed and treat crawlers like visitors from the same country. Setup and limitations: https://wplocation.com/documentation/geolocation-speed-seo/.