<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Introduction to GeoIP</title>
	<atom:link href="http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/</link>
	<description>Dinke&#039;s Personal Blog</description>
	<lastBuildDate>Fri, 13 Jan 2012 17:23:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Geo redirect based on ip in various countries not working in wpmu??</title>
		<link>http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/comment-page-1/#comment-12402</link>
		<dc:creator>Geo redirect based on ip in various countries not working in wpmu??</dc:creator>
		<pubDate>Mon, 12 Dec 2011 06:52:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.dinke.net/blog/2006/11/30/introduction-to-geoip/en/#comment-12402</guid>
		<description>[...] wpmu??      I&#039;m using wpmu subdomains, and I tried maxmind&#039;s tutorials using country lite version, http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/ It&#039;s working for redirection for typical single site subfolders, but when i tested in my wpmu site [...]</description>
		<content:encoded><![CDATA[<p>[...] wpmu??      I&#039;m using wpmu subdomains, and I tried maxmind&#039;s tutorials using country lite version, <a href="http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/" rel="nofollow">http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/</a> It&#039;s working for redirection for typical single site subfolders, but when i tested in my wpmu site [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivana</title>
		<link>http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/comment-page-1/#comment-8057</link>
		<dc:creator>Ivana</dc:creator>
		<pubDate>Tue, 31 May 2011 11:19:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.dinke.net/blog/2006/11/30/introduction-to-geoip/en/#comment-8057</guid>
		<description>Hi,
Thankyou for this tutorial, i have been looking for this forever :) You are Fantastic!
i would like to redirect by region name 
is this possible using the free databases from maxmind?

if not,  is it possible by city?, i have tried the following but it is not working because i am obviously just guessing the code :)
although i would prefer redirect by region name...

&lt;?php
/**
 * Case Study - GeoIP Redirection
 *
 * @version $Id$
 * @package geoip
 * @copyright © 2006 Lampix.net
 * @author Dragan Dinic 
 */

require_once(&quot;geoipcity.inc&quot;);

$gi = geoip_open(&quot;GeoLiteCity.dat&quot;,GEOIP_STANDARD);

$city = geoip_city_by_addr($gi, $_SERVER[&#039;REMOTE_ADDR&#039;]);

geoip_close($gi);

if($city == &#039;Sydney&#039;)
{
        header(&quot;HTTP/1.1 301 Moved Permanently&quot;);
        header(&#039;Location: http://www.example.net/1/&#039;);
}
else
{
        header(&quot;HTTP/1.1 301 Moved Permanently&quot;);
        header(&#039;Location: http://www.example.net/2/&#039;);
}
?&gt;</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thankyou for this tutorial, i have been looking for this forever :) You are Fantastic!<br />
i would like to redirect by region name<br />
is this possible using the free databases from maxmind?</p>
<p>if not,  is it possible by city?, i have tried the following but it is not working because i am obviously just guessing the code :)<br />
although i would prefer redirect by region name&#8230;</p>
<p>&lt;?php<br />
/**<br />
 * Case Study &#8211; GeoIP Redirection<br />
 *<br />
 * @version $Id$<br />
 * @package geoip<br />
 * @copyright © 2006 Lampix.net<br />
 * @author Dragan Dinic<br />
 */</p>
<p>require_once(&#8220;geoipcity.inc&#8221;);</p>
<p>$gi = geoip_open(&#8220;GeoLiteCity.dat&#8221;,GEOIP_STANDARD);</p>
<p>$city = geoip_city_by_addr($gi, $_SERVER['REMOTE_ADDR']);</p>
<p>geoip_close($gi);</p>
<p>if($city == &#8216;Sydney&#8217;)<br />
{<br />
        header(&#8220;HTTP/1.1 301 Moved Permanently&#8221;);<br />
        header(&#8216;Location: <a href="http://www.example.net/1/" rel="nofollow">http://www.example.net/1/</a>&#8216;);<br />
}<br />
else<br />
{<br />
        header(&#8220;HTTP/1.1 301 Moved Permanently&#8221;);<br />
        header(&#8216;Location: <a href="http://www.example.net/2/" rel="nofollow">http://www.example.net/2/</a>&#8216;);<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dinke</title>
		<link>http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/comment-page-1/#comment-7967</link>
		<dc:creator>Dinke</dc:creator>
		<pubDate>Tue, 24 May 2011 20:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.dinke.net/blog/2006/11/30/introduction-to-geoip/en/#comment-7967</guid>
		<description>Hello Jason,

For checking east vs. west cost you can either check based by zipcode (postcal code) and comparing it with some huge zipcode db but probably it&#039;s much easier to set them up depending of Latitude/Longitude.</description>
		<content:encoded><![CDATA[<p>Hello Jason,</p>
<p>For checking east vs. west cost you can either check based by zipcode (postcal code) and comparing it with some huge zipcode db but probably it&#8217;s much easier to set them up depending of Latitude/Longitude.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason M.</title>
		<link>http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/comment-page-1/#comment-7965</link>
		<dc:creator>Jason M.</dc:creator>
		<pubDate>Tue, 24 May 2011 19:00:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.dinke.net/blog/2006/11/30/introduction-to-geoip/en/#comment-7965</guid>
		<description>Hello, You are seriously awesome for providing this tutorial. It&#039;s really helped me get in the right direction. One problem though, could you give an example of how to redirect users based on city/region using the GeoLiteCity.dat. Basically I want to redirect everyone on the east coast to an east coast version of the site, and redirect west coast visitors to a west coast site. If I can accomplish that I will scream at the top of my lungs with happiness!! Thanks again Dinke!</description>
		<content:encoded><![CDATA[<p>Hello, You are seriously awesome for providing this tutorial. It&#8217;s really helped me get in the right direction. One problem though, could you give an example of how to redirect users based on city/region using the GeoLiteCity.dat. Basically I want to redirect everyone on the east coast to an east coast version of the site, and redirect west coast visitors to a west coast site. If I can accomplish that I will scream at the top of my lungs with happiness!! Thanks again Dinke!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Redireccionar nuestra web según dispositivos móbiles, Iphone, Ipad,&#8230;</title>
		<link>http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/comment-page-1/#comment-4279</link>
		<dc:creator>Redireccionar nuestra web según dispositivos móbiles, Iphone, Ipad,&#8230;</dc:creator>
		<pubDate>Mon, 22 Nov 2010 17:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.dinke.net/blog/2006/11/30/introduction-to-geoip/en/#comment-4279</guid>
		<description>[...] http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/" rel="nofollow">http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarv1nho</title>
		<link>http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/comment-page-1/#comment-3851</link>
		<dc:creator>Jarv1nho</dc:creator>
		<pubDate>Mon, 25 Oct 2010 07:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.dinke.net/blog/2006/11/30/introduction-to-geoip/en/#comment-3851</guid>
		<description>This script works a charm.  I&#039;d like to use it so that if somebody enters the site at any point, they will be directed to the equivalent url on the target site.  For example, if they enter on xyz.com/ipods, they will be redirected to xyz.com/redirect/ipods.  If xyz.com/games, they will go to xyz.com/redirect/games.  How can I use relative urls to accomplish this?

Thanks!</description>
		<content:encoded><![CDATA[<p>This script works a charm.  I&#8217;d like to use it so that if somebody enters the site at any point, they will be directed to the equivalent url on the target site.  For example, if they enter on xyz.com/ipods, they will be redirected to xyz.com/redirect/ipods.  If xyz.com/games, they will go to xyz.com/redirect/games.  How can I use relative urls to accomplish this?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sapan</title>
		<link>http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/comment-page-1/#comment-3728</link>
		<dc:creator>Sapan</dc:creator>
		<pubDate>Wed, 20 Oct 2010 02:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.dinke.net/blog/2006/11/30/introduction-to-geoip/en/#comment-3728</guid>
		<description>How to redirect users based upon state. For e.g i want visitors from California to land in one.php, Florida to two.php and rest all to default.php</description>
		<content:encoded><![CDATA[<p>How to redirect users based upon state. For e.g i want visitors from California to land in one.php, Florida to two.php and rest all to default.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dinke</title>
		<link>http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/comment-page-1/#comment-171</link>
		<dc:creator>dinke</dc:creator>
		<pubDate>Mon, 16 Nov 2009 13:27:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.dinke.net/blog/2006/11/30/introduction-to-geoip/en/#comment-171</guid>
		<description>Use absolute path for that dir on your server. For example:

require_once(&#039;/home/dinke/public_html/geoip/geoip.inc&#039;);</description>
		<content:encoded><![CDATA[<p>Use absolute path for that dir on your server. For example:</p>
<p>require_once(&#8216;/home/dinke/public_html/geoip/geoip.inc&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/comment-page-1/#comment-172</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Mon, 16 Nov 2009 02:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dinke.net/blog/2006/11/30/introduction-to-geoip/en/#comment-172</guid>
		<description>Loooooovvvvveeeeeeeeeeeeeeeeeee yyyyoooouuuuuu!!!!!!!!!!
I was about to throw my computer out the window until I found this!

I just have a question, because I&#039;m a noob. I have multiple websites and I want to use this for all of them from the same location of the api. For example:
If I place the &#039;geoip&#039; folder in this location &quot;/public_html/website-no-1&quot; and I have the &#039;redirect.php&#039; in the same location, it works great.
But if I place the &#039;geoip&#039; folder in &quot;/public_html&quot;, so that I can use it for &#039;website-no-1&#039; and &#039;website-no-2&#039; I get an error. I&#039;m sure it is because of this line:
require_once(&quot;geoip/geoip.inc&quot;);
but I can&#039;t figure out what to write there instead of &#039;geoip&#039;. I&#039;ve tried &#039;/public_html/geoip&#039; and it doesn&#039;t work. Please help.</description>
		<content:encoded><![CDATA[<p>Loooooovvvvveeeeeeeeeeeeeeeeeee yyyyoooouuuuuu!!!!!!!!!!<br />
I was about to throw my computer out the window until I found this!</p>
<p>I just have a question, because I&#8217;m a noob. I have multiple websites and I want to use this for all of them from the same location of the api. For example:<br />
If I place the &#8216;geoip&#8217; folder in this location &#8220;/public_html/website-no-1&#8243; and I have the &#8216;redirect.php&#8217; in the same location, it works great.<br />
But if I place the &#8216;geoip&#8217; folder in &#8220;/public_html&#8221;, so that I can use it for &#8216;website-no-1&#8242; and &#8216;website-no-2&#8242; I get an error. I&#8217;m sure it is because of this line:<br />
require_once(&#8220;geoip/geoip.inc&#8221;);<br />
but I can&#8217;t figure out what to write there instead of &#8216;geoip&#8217;. I&#8217;ve tried &#8216;/public_html/geoip&#8217; and it doesn&#8217;t work. Please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.dinke.net/blog/en/2006/11/30/introduction-to-geoip/comment-page-1/#comment-170</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 21 Jul 2009 13:39:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.dinke.net/blog/2006/11/30/introduction-to-geoip/en/#comment-170</guid>
		<description>Thanks for great tutorial. Really amazing.

Using the redirection of depending country,
Im redirecting visitor in Canada and other countries,
But Im stayed in Canada.

How to allow my ip address and 2-3 ip address in the using this code.

Tried some codes.. Not works.

Could you tell me the way solve this.

Thank you for great code !!!!!!!</description>
		<content:encoded><![CDATA[<p>Thanks for great tutorial. Really amazing.</p>
<p>Using the redirection of depending country,<br />
Im redirecting visitor in Canada and other countries,<br />
But Im stayed in Canada.</p>
<p>How to allow my ip address and 2-3 ip address in the using this code.</p>
<p>Tried some codes.. Not works.</p>
<p>Could you tell me the way solve this.</p>
<p>Thank you for great code !!!!!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

