Hi all,
Wondering if there is a recommended or good way to implement this at the EE level? Considered webserver but that wouldn’t give the outcome as desired.
I’d like to show x countries the main content but y countries other content.
Some of what we do is territory specific.
Can’t find any plugins that would do this out of the box so curious to see if anyone else has come across this requirement.
Thanks!
Would https://docs.expressionengine.com/latest/add-ons/ip-to-nation.html#banning-countries not be suitable? I’ve only just found this.
I have tried it although it appears to be buggy as the Maxmind download does not work.
I get a message unable to connect to Maxmind and there are no docs on how to manually update it.
The IP to nation module doesn’t have any template tags/variables that can be used the way you want, but there’s no reason why you can’t write a custom module that uses IP to nation as a base, and extend the way you want it to work.
I know the Maxmind issue was raised a while back, I’m not sure if there’s been any progress on it since I don’t use it. Saying that I just found https://expressionengine.com/add-ons/ip-geo-locator in the addon store, that might be worth a look, it seems to do “if allowed” with TRUE/FALSE which you could use to show alternative content for matching IP’s.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.