I have received this vulnerability message via my security plugin:
‘WordPress Custom Content by Country plugin <= 3.1.2 – Broken Access Control vulnerability’
Is there a fix for this available soon?
Thanks in advance.
Hello,
this plugin looks very interesting, will it ever be available again?
Thank you very much
]]>I got it to work with Norway, but I can’t make it work for Denmark. This is the code, right?
[CBC show=”y” country=”da”]Test [/CBC]
I use NordVPN and logged in to Denmark. I ran a test to acsertain that my IP is in Denmark, but the plugin still does not show “Test”. Have I done anything wrong?
Thanks for helping me with this!
Hello,
I have added your example shortcode to my website which is hosted by Siteground. I also signed up with cloudflare.com and can see that my website and domain are listed and connected there. I am testing it from Germany. Your plugin is activated.
However, the shortcode does not seem to work. Only the original shortcode is displayed on the frontend:
[CBC show=”y” country=”es, us”]I only appear in Spain and the U.S.[/CBC].
Is there anything else I can do to make it work?
I hope you can help me.
With kind regards
gifiy
Hi,
Is there anyway we can have NOT operator in this plugin.
<li>[CBC show='y' country='my'] Malaysian Phone Number [/CBC]</li>
</ul>
<li>[CBC show='y' country=<strong>!</strong>'my'] International Phone Number [/CBC]</li>
</ul>
Thank you.
]]>Hi,
I tried to show country-dependent free shipping information on a banner using the following short code:
[CBC show=y country="ch"]Free shipping from 50 CHF[/CBC][CBC show=y country="at,be,bg,hr,cy,cz,dk,ee,fi,fr,de,gr,hu,ie,it,lv,lt,lu,mt,nl,pl,pt,ro,sk,si,es,se"]Free shipping from 40 EUR[/CBC]
It works fine for me in Switzerland (first case above), but a friend in France gets a fatal error.
When I tried using geotargetly.com with France as a country, it seems to work OK.
I also tried using show=”y” (with quotes) and show=y (without) having read about it in some post.
Anything obvious in the trace below?
Thanks in advance for your help!
–Pete
Fatal error: Uncaught TypeError: MaxMind\Db\Reader::get(): Argument #1 ($ipAddress) must be of type string, null given, called in /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-content/plugins/custom-content-by-country/vendor/geoip2/geoip2/src/Database/Reader.php on line 242 and defined in /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-content/plugins/woocommerce/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php:122 Stack trace: #0 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-content/plugins/custom-content-by-country/vendor/geoip2/geoip2/src/Database/Reader.php(242): MaxMind\Db\Reader->get(NULL) #1 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-content/plugins/custom-content-by-country/vendor/geoip2/geoip2/src/Database/Reader.php(215): GeoIp2\Database\Reader->getRecord('Country', 'Country', NULL) #2 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-content/plugins/custom-content-by-country/vendor/geoip2/geoip2/src/Database/Reader.php(88): GeoIp2\Database\Reader->modelFor('Country', 'Country', NULL) #3 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-content/plugins/custom-content-by-country/src/GeoIP/RetrieveCountryForVisitor.php(16): GeoIp2\Database\Reader->country(NULL) #4 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-content/plugins/custom-content-by-country/src/icwp-ccbc-processor.php(351): FernleafSystems\Wordpress\Plugin\CCBC\GeoIP\RetrieveCountryForVisitor->lookupIP(NULL) #5 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-content/plugins/custom-content-by-country/src/icwp-ccbc-processor.php(284): ICWP_CCBC_Processor_GeoLocation->getMMCountry() #6 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-content/plugins/custom-content-by-country/src/icwp-ccbc-processor.php(171): ICWP_CCBC_Processor_GeoLocation->getVisitorCountryCode() #7 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-includes/shortcodes.php(356): ICWP_CCBC_Processor_GeoLocation->sc_printContentByCountry(Array, 'Livraison gratu...', 'CBC') #8 [internal function]: do_shortcode_tag(Array) #9 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(CBC)(?...', 'do_shortcode_ta...', '\n<p>[CBC show=y...') #10 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-includes/class-wp-hook.php(309): do_shortcode('\n<p>[CBC show=y...') #11 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-includes/plugin.php(191): WP_Hook->apply_filters('\n<p>[CBC show=y...', Array) #12 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-includes/widgets/class-wp-widget-block.php(81): apply_filters('widget_block_co...', '<!-- wp:paragra...', Array, Object(WP_Widget_Block)) #13 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-includes/class-wp-widget.php(393): WP_Widget_Block->widget(Array, Array) #14 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-includes/widgets.php(835): WP_Widget->display_callback(Array, Array) #15 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-content/themes/astra/inc/markup-extras.php(1278): dynamic_sidebar('header-widget-2') #16 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-content/themes/astra/template-parts/header/builder/components.php(183): astra_get_sidebar('header-widget-2') #17 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-includes/template.php(772): require('/home/clients/b...') #18 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-includes/template.php(716): load_template('/home/clients/b...', false, Array) #19 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-includes/general-template.php(204): locate_template(Array, true, false, Array) #20 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-content/themes/astra/inc/core/builder/class-astra-builder-helper.php(903): get_template_part('template-parts/...', '', Array) #21 /home/clients/b41c0f6ff95ac05cc8c2af0787b9ce1f/sites/homnes.co/wp-content/themes/astra/inc/builder/marku
Hi,
been using the plugin for yonks, love it, one thing, since I last updated, I cannot remove the notice in the backend
‘Custom Content By Country plugin has been updated. Worth checking out the latest docs.’
Any solution?
Cheers
]]>Since the update to 3.0, the plugin crashes my website. I use php 8.1. Until version 2.9x, it worked flawlessly. Does anyone else run into such problems?
]]>Hi there,
Thank you for the great plugin!
Is it possible to modify this plugin to display custom content by IP address instead of country?
For example, is it possible to create a dummy country “XX” and assign a list of IPs to that specific country?
I have some content that i’d like to target very specifically to certain users and this would be a great feature, otherwise the plugin works very well.
Thank you!
]]>Badly recognized country. My site and I are in the Czech Republic. Yet it shows me that I am in the United Kingdom. The same thing, when I display my pages on my mobile phone. I assume the error is in your database. Can you please fix it?
]]>Hello,
I tried the plugin in two different domain (and servers – one located in Germany the other in Italy) but doesn’t work.
I’m located in Spain and the shortcode doesn’t show the content.
WordPress 5.8.4
Elementor v3.5.3
Elementor Pro v3.5.2
thanks
]]>I am using this Plug-in to diasble youtube video block for Chinese visitors as they are banned for Youtube.
This plugin works well yesterday, but I find it does not work now.
I try to print the visitor ip and country for visitors.
If I visit from Singapore, the plugin gets a Honduras ip.
If I visit from China, the plugin gets a Indonesia ip.
Do you think this may because the CDN?
Any possible solution for it?
(Google translator)
Hi, how can I put a shortcode on a page built with Divi?
I have put the shortcode in both a code module and a text module, and in neither of them has it worked for me.
Is it possible to get it?
Hi Support,
Good day.
I rally appreciate your help.
How can I use the code to hide and show image and button? please.
Thank you so much.
]]>Hi,
First of all thank you for this plugin! Works great and just what I’ve needed. There is one thing though which is that I need to display content if the visitor is from New Zealand. Is it possible to add it to the available ones like UK (It’s also and important visitor country for me)?
Thank you in advance!
I am using Unyson extension page builder. Is there a way to use the shortcode with it ?
]]>Hello, I developed a site where I must show specific information for Spain, but it turns out that there are people in Spain who cannot see that information, it does not appear. Thank you!
google translate, sorry :/
]]>Hello
I have seen the great reviews on your plugin and I’d like to use it. I noticed that the last update was 6 months ago, this worries me because there had been a lot of updates in WP.
I’d like to know if you are planing an update on the plugin.
Thank you.
]]>I’ve been checking all the geo-targeting plugins available and this one is by far the best I found.
After I moved to Cloudflare (free) It works perfectly for me (except the [CBC_COUNTRY /] shortcode).
The problem is that if I cannot rely on it, I will not build my website for multi-region, because it is a big work.
I would be more than happy if you updated this plugin at least once a year or build a pro version to be sure that it will continue to work.
Please, let your plugin users know what you plan for this plugin, so we can plan our steps.
Hey, I’m trying to display a button based on a user’s location, but the plugin doesn’t really work.
I tried to connect through VPN to the desired country (Austria) and it showed me that I’m in Russia.
So I tried to change the settings to different countries, tried Netherlands and it showed me I’m in USA.
Is the problem on my side or VPN or IP detection? Can you advise? Thanks.
Currently I’m running the default Elementor button, because I can’t have disfunctioning website element. But I’ll try any possible solution.
]]>I installed the plugin and the database with no errors. But when I check a Switzerland VPN, i get an “us” Cookie. When i switch to another country, the result is also another country, but never valid. Tested on a live-server and same with localhost … Is this plugin no longer maintained? (On localhost i don’t use any caching plugin)
]]>I want to use the shortcode in my flatsome theme, but i cant make it work. do i need to use the shortcode or is there a way to use the plugin via html code? sorry i’m a complete noob who tries to figure this out ??
]]>Is there a country code for the EU countries? I tried “eu” but it didn’t work.
]]>Loving this plug-in, thank you. Just discovered something odd though: content that should be displayed in the USA (using ‘us’ country code) is not displaying in California.
]]>After posting this message I already found out why the plugin was not showing the right country content any more: I had started using the WP-cache pluging, and that seems to interfere with the functionality. Just a warning for others.
]]>Hi,
I get two *different* CBC cookies from two tabs of the same browser, with two different installations of CBC & wordpress.
Tab 1 – cbc correct:
>> Old cbc installation => [cookie: cbc_country = uk] (correct!)
Tab 2 – cbc wrong:
>> Upgraded/latest cbc installation => [cookie: cbc_country = us] (wrong!)
Is there a way to see debug info to understand what’s the cause?
Already tried: clear-cache, Incognito, multiple machines, etc.
Thanks.
]]>I have a problem when I see the content of the site with 4g I see it fine, but if I activate the wifi it takes me another ip. Does anyone know how to fix it?
]]>Last plugin version (2.19.200520)
Outputs the ‘span’ even is html=”none” ?
[CBC country=”uk” show=”y” html=”none”]XYZ[/CBC]
==> Still produces:
<span class=”cbc_content”>XYZ</span>
Expected:
XYZ
>> not to produce the span because html=”none”
Hi,
Does this plugin have the capability to hide content from a certain country? For example, I want a certain text to show in Canada and the rest of the world but except for U.S.A?
In other words, don’t show content to U.S.A folks.
Any help is greatly appreciated. Thanks
]]>Hi, is the Plugin compatible with the plugin WPML?
Thanks in advance.