{"id":33320,"date":"2014-12-09T00:10:46","date_gmt":"2014-12-09T00:10:46","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/geotargeting\/"},"modified":"2022-08-15T15:56:56","modified_gmt":"2022-08-15T15:56:56","slug":"geotargeting","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/geotargeting\/","author":7004531,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.6.1","stable_tag":"1.3.6.1","tested":"6.1.10","requires":"3.6","requires_php":"","requires_plugins":"","header_name":"GeoTargeting Lite","header_author":"Timersys","header_description":"","assets_banners_color":"ccdbe9","last_updated":"2022-08-15 15:56:56","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/geotargetingwp.com\/","header_plugin_uri":"https:\/\/timersys.com\/geotargeting\/","header_author_uri":"https:\/\/timersys.com\/geotargeting\/","rating":3.9,"author_block_rating":0,"active_installs":1000,"downloads":66271,"num_ratings":32,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"timersys","date":"2022-08-15 15:56:56"},"1.0.2":{"tag":"1.0.2","author":"timersys","date":"2015-02-12 02:37:30"},"1.0.3":{"tag":"1.0.3","author":"timersys","date":"2015-02-24 23:00:35"},"1.1":{"tag":"1.1","author":"timersys","date":"2015-05-09 22:04:13"},"1.1.1":{"tag":"1.1.1","author":"timersys","date":"2015-05-12 16:04:45"},"1.1.2":{"tag":"1.1.2","author":"timersys","date":"2015-05-23 14:41:27"},"1.1.3":{"tag":"1.1.3","author":"timersys","date":"2015-07-24 20:49:20"},"1.1.4":{"tag":"1.1.4","author":"timersys","date":"2015-08-13 23:22:37"},"1.1.5":{"tag":"1.1.5","author":"timersys","date":"2015-10-09 13:49:18"},"1.1.6":{"tag":"1.1.6","author":"timersys","date":"2015-11-19 16:27:47"},"1.1.7":{"tag":"1.1.7","author":"timersys","date":"2015-12-11 15:08:21"},"1.1.8":{"tag":"1.1.8","author":"timersys","date":"2016-02-16 12:47:13"},"1.1.9":{"tag":"1.1.9","author":"timersys","date":"2016-04-07 13:11:45"},"1.2":{"tag":"1.2","author":"timersys","date":"2016-07-27 13:04:35"},"1.2.1":{"tag":"1.2.1","author":"timersys","date":"2016-08-30 13:12:06"},"1.2.2":{"tag":"1.2.2","author":"timersys","date":"2016-12-15 12:02:19"},"1.3":{"tag":"1.3","author":"timersys","date":"2017-04-03 13:17:06"},"1.3.1":{"tag":"1.3.1","author":"timersys","date":"2017-06-10 14:37:39"},"1.3.2":{"tag":"1.3.2","author":"timersys","date":"2018-02-26 14:43:30"},"1.3.3":{"tag":"1.3.3","author":"timersys","date":"2019-05-07 15:34:54"},"1.3.4":{"tag":"1.3.4","author":"timersys","date":"2020-06-18 21:19:48"},"1.3.4.1":{"tag":"1.3.4.1","author":"timersys","date":"2022-08-15 14:05:35"},"1.3.5":{"tag":"1.3.5","author":"timersys","date":"2021-03-30 12:52:55"},"1.3.5.1":{"tag":"1.3.5.1","author":"timersys","date":"2022-01-17 15:59:44"},"1.3.6":{"tag":"1.3.6","author":"timersys","date":"2022-08-15 14:05:35"},"1.3.6.1":{"tag":"1.3.6.1","author":"timersys","date":"2022-08-15 15:56:56"}},"upgrade_notice":[],"ratings":{"1":8,"2":1,"3":0,"4":0,"5":23},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":1245155,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1829366,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":1040845,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2","1.0.3","1.1","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.1.7","1.1.8","1.1.9","1.2","1.2.1","1.2.2","1.3","1.3.1","1.3.2","1.3.3","1.3.4","1.3.4.1","1.3.5","1.3.5.1","1.3.6","1.3.6.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3882,20578,4124,4169,32124],"plugin_category":[45,49],"plugin_contributors":[78621],"plugin_business_model":[],"class_list":["post-33320","plugin","type-plugin","status-publish","hentry","plugin_tags-cloudflare","plugin_tags-geo-target","plugin_tags-geolocation","plugin_tags-geotargeting","plugin_tags-wordpress-geotargeting","plugin_category-ecommerce","plugin_category-maps-and-location","plugin_contributors-timersys","plugin_committers-timersys"],"banners":{"banner":"https:\/\/ps.w.org\/geotargeting\/assets\/banner-772x250.png?rev=1040845","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/geotargeting\/assets\/icon-128x128.jpg?rev=1245155","icon_2x":"https:\/\/ps.w.org\/geotargeting\/assets\/icon-256x256.png?rev=1829366","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Based on <a href=\"http:\/\/www.maxmind.com\/?rId=timersys\">Maxmind GeoIP2<\/a> data Geo Targeting plugin for WordPress will let you create dynamic content based on your users country.<\/p>\n\n<p>With a simple shortcode you will be able to specify which countries are capable of seeing the content.<\/p>\n\n<p>Compatible with <a href=\"https:\/\/timersys.com\/popups\/?utm_source=geot-readme&amp;utm_medium=link&amp;utm_term=popus%20premium&amp;utm_campaign=Popups%20premium\">Wordpress Popups Plugin<\/a>. You can now geotarget your popups<\/p>\n\n<p>If you use popular firewall services such as Cloudflare, Reblaze, Sucuri, Ezoic, Akamai or Clouways the plugin will auto detect real IP from users.<\/p>\n\n<p>This plugin it's a basic version with limited functionality. For a full geo plugin please refer to https:\/\/geotargetingwp.com<\/p>\n\n<p>Usage:<\/p>\n\n<pre><code>[geot country=\"Argentina\"] Messi is the best! [\/geot]``\n[geot country=\"Portugal\"] Cristiano ronaldo is the best! [\/geot]``\n[geot exclude_country=\"Portugal\"] This text is seeing by everyone except Portuguese people [\/geot]``\nCurrent user is located in [geot_country_name]``\nCurrent user country code is [geot_country_code]``\n<\/code><\/pre>\n\n<p>The plugin save into it's own cache the country you are in. If you need to test for different countries you have two options:<\/p>\n\n<p>You can pass a country iso code in the url like this:\n    http:\/\/demo.com\/some-page\/?geot_debug=US``<\/p>\n\n<p>Or you can add in wp-config.php the following to use your own VPN\n    define('GEOT_DEBUG',true);``<\/p>\n\n<blockquote>\n  <p><strong>Premium Version<\/strong><br \/><\/p>\n  \n  <p>Check the <strong>new premium version<\/strong> available in (<a href=\"https:\/\/geotargetingwp.com\/?utm_source=geot-readme&amp;utm_medium=link&amp;utm_term=geot%20premium&amp;utm_campaign=Geot%20premium\">https:\/\/geotargetingwp.com\/<\/a>) that comes with Premium database with much more accuracy.\n  * Geo Redirects\n  * GeoTarget countries, cities and states\n  * Cloudflare geolocation support\n  * Geotarget posts \/ pages entirely\n  * Create multiple Redirects based on user countries states or cities\n  * Editor button to easily add shortcodes\n  * Create multiple regions (group of countries or cities) to use with shortcodes\n  * Exclude countries, cities and regions shortcode\n  * Dropdown Widget to let users change their country (with flags)\n  * Complete set of PHP functions\n  * Hide Woocommerce or Easy digital downloads products. Works with any plugin\n  * AJAX mode that make plugin compatible with Cache plugins\n  * Geotarget menu items, widgets, everything\n  * Upcoming integration with other populars plugins\n  * Premium support<\/p>\n<\/blockquote>\n\n<h4>Wordpress Popups<\/h4>\n\n<p>Best popups plugin ever (<a href=\"https:\/\/wppopups.com\/?utm_source=wsi-free-plugin&amp;utm_medium=readme\">https:\/\/wppopups.com\/<\/a>)<\/p>\n\n<!--section=installation-->\n<ol>\n<li><p>Unzip and Upload the directory 'geo-targeting' to the '\/wp-content\/plugins\/' directory<\/p><\/li>\n<li><p>Activate the plugin through the 'Plugins' menu in WordPress<\/p><\/li>\n<li><p>Go to the editor and use as many shortcodes as needed<\/p><\/li>\n<li><p>If it fails try uploading files manually by ftp<\/p><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20can%20i%20display%20content%20to%20everyone%20except%20some%20countries'><h3>How can I display content to everyone except some countries<\/h3><\/dt>\n<dd><p>If you have content that want to be display to USA's users but then you want to show another content to everyone else, you can do the following:\n    [geot country=\"US\"] USA only content [\/geot]\n    [geot exclude_country=\"US\"] Everyone except USA will see this [\/geot]<\/p>\n\n<p>2 Letter iso codes are better for geolocation shortcodes but the plugin also accepts country names.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.6.1<\/h4>\n\n<ul>\n<li>Added country name and code shortcodes<\/li>\n<\/ul>\n\n<h4>1.3.5.1<\/h4>\n\n<ul>\n<li>Settings update<\/li>\n<\/ul>\n\n<h4>1.3.5<\/h4>\n\n<ul>\n<li>Fixed IP on varnish when returning two ips<\/li>\n<li>Added debug data to ip test page<\/li>\n<\/ul>\n\n<h4>1.3.4.1<\/h4>\n\n<ul>\n<li>Removed start_session from plugin which is not longer used<\/li>\n<li>Updated latest version<\/li>\n<\/ul>\n\n<h4>1.3.4<\/h4>\n\n<ul>\n<li>Added auto update db into plugin<\/li>\n<\/ul>\n\n<h4>1.3.3<\/h4>\n\n<ul>\n<li>Updated db<\/li>\n<li>Added support for geot maxmind db updater<\/li>\n<\/ul>\n\n<h4>1.3.2<\/h4>\n\n<ul>\n<li>Updated db<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Updated db<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Updated db<\/li>\n<li>Added settings page for debug mode<\/li>\n<li>Added Ip testing page<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Updated db<\/li>\n<li>Fixed bug where countries db not being populated after uninstall<\/li>\n<li>Added new debug method for easy debugging<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Updated db<\/li>\n<li>Updated country db list of iso codes<\/li>\n<li>Added clouways real ip detection<\/li>\n<\/ul>\n\n<h4>1.1.9<\/h4>\n\n<ul>\n<li>Updated db<\/li>\n<li>Updated readme file<\/li>\n<li>Changed default country for bots\/crawlers<\/li>\n<\/ul>\n\n<h4>1.1.8<\/h4>\n\n<ul>\n<li>Updated db<\/li>\n<li>Code improvements<\/li>\n<\/ul>\n\n<h4>1.1.7<\/h4>\n\n<ul>\n<li>Updated db<\/li>\n<li>Added akamai and Ezoic real IP detection<\/li>\n<li>Added crawler detect class for better detection<\/li>\n<\/ul>\n\n<h4>1.1.7<\/h4>\n\n<ul>\n<li>Updated db<\/li>\n<li>Real Ip is autodetected from Cloudflare, sucuri and Reblaze<\/li>\n<\/ul>\n\n<h4>1.1.6<\/h4>\n\n<ul>\n<li>Fixed problem with fallback country generating undefined errors<\/li>\n<li>Fixed problem that was generating installation errors<\/li>\n<li>Updated ip database<\/li>\n<\/ul>\n\n<h4>1.1.5<\/h4>\n\n<ul>\n<li>Added catch to all exceptions<\/li>\n<li>Updated ip country database<\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>Fixed bug when address is not found<\/li>\n<li>Removed country calculation on ajax and cron calls<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Updated popups integration for latest version<\/li>\n<li>Updated country Database<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Fixed function country name<\/li>\n<li>Added fallback in case IP not found<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Fixed bug with popups integration<\/li>\n<li>Fixed bug in some shortcodes and functions<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Now we use Maxmind API and mmdb database instead of loading mysql server<\/li>\n<li>No more heavy databases installs on plugin installation<\/li>\n<li>Added cloudflare geolocation<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Added support for <a href=\"https:\/\/wordpress.org\/plugins\/popups\/\">Wordpress Popups Plugin<\/a><\/li>\n<li>Added multisite support<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Added sessions to cache user country and calculate it just once per session<\/li>\n<li>Updated IP database<\/li>\n<li>Removed calculate IP in admin area because was not necessary<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fixed error uploading data on activation or certain servers<\/li>\n<li>Fixed error in php functions<\/li>\n<li>Updated IP database<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Plugin launched!<\/li>\n<\/ul>","raw_excerpt":"GeoTargeting for WordPress will let you country-target your content based on users IP&#039;s and Geocountry Ip database","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/33320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=33320"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/timersys"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=33320"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=33320"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=33320"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=33320"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=33320"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=33320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}