The Joomla! Extensions Directory ™


GeoIP redirect Plugin

This plugin uses Maxmind Geo IP lite country database http://www.maxmind.com/app/geoip_country, and based on visitor country can set its language or redirect visitor to the given address.

It set language only for first visit to homepage based on Joomfish and plugin configuration.

You can use it for denying access for IP address from certain countries too.
http://geolite.maxmind.com/download/geoip/database/LICENSE.txt

Report Extension

 

Images

 

2011-04-01
Reviews: 1
This plugin seems to not work:
Any settings I put in plugin configuration seems to be discarded.
2010-12-09
Reviews: 12
After testing this plugin out on 3 business websites with all kinds of different configuration settings this plugin was not able to redirect anything to any URL. Contacting the developer who I send detailed images of my configuration, repeatedly came up with new ideas, but non of them worked. based on this experience I have to conclude that this extension simply does not work.
2010-10-27
Reviews: 1
As of 1.0, this plugin works, but it required me to debug some code, and some work to get it configured correctly. Once setup it works great!

As of Oct 2010 it was the only plugin which met my requirements of Joom!fish for free. With the info included below, I would recommend some to use it, if someone needs a free geo-ip plugin and doesn't mind some setup/php.

I hope this will serve as the missing README file.

First, here is a patch I had to use to get it to work.
geoip.php
from
110 if( ( is_array( $countries ) && in_array( $visitor_cc, $countries ) ) || $visitor_cc = $countries) {
to
110 if( ( is_array( $countries ) && in_array( $visitor_cc, $countries ) ) || $visitor_cc == $countries) {

Here is a patch which isn't a bug, but I had to do it. Most shouldn't need this patch.
geoip.php
from
77 if( JRequest::getVar('view') != 'frontpage' ){
to
77 if( JRequest::getVar('view') != 'frontpage' || JRequest::getVar('view') != '' ){

contstants.php to change "GEOIP_NUM_LANGUAGES" to the number of languages needed.

geoip.xml, I had to extend the number of languages I could see in the admin page from 5 to the number of languages I had. I copied and pasted (create X copies of "geoiplanguage" -> "spacer", incrementing the numbers each time.)

In the admin tool, I needed to set all the redirect links manually. The programs attempt for a url didn't work for me.

I recommend updating the GeoIP.dat file. The one it comes with is a bit old. But it is nice it is included, as it makes it easier to figure out which dir it is located in.

I tried contacting the creator, but the response wasn't helpful. Maybe someone else will get a more useful response.
Owner's reply

Thanks James for resolving a bug. New version uploaded.

Just to note, the second is not a bug, because
if( JRequest::getVar('view') != 'frontpage' || JRequest::getVar('view') != '' ){

could be replaced with if(true){