<?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: GeoIP Country Location &#8211; PHP Script</title>
	<atom:link href="http://shockmarketer.com/geoip-country-location-php-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://shockmarketer.com/geoip-country-location-php-script/</link>
	<description>The secrets that make advertisements sell</description>
	<lastBuildDate>Tue, 31 Jan 2012 21:20:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: vnmilen</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-2729</link>
		<dc:creator>vnmilen</dc:creator>
		<pubDate>Tue, 16 Aug 2011 09:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-2729</guid>
		<description>If you will use this scripts for redirect users to other page of your site, think about that the Google BOTS are also &quot;users&quot; and also they will be redirected, and in that way, your site will not be indexed in Google and you will have got an unbelevable big &quot;trafic&quot; to your site, because they will index sites that not exacts!

If you have questions, find my e-mail on my site (english, french, bulgarian):
http://www.atanasov.co.cc/en/
http://www.atanasov.co.cc/fr/
http://www.atanasov.co.cc/</description>
		<content:encoded><![CDATA[<p>If you will use this scripts for redirect users to other page of your site, think about that the Google BOTS are also &#8220;users&#8221; and also they will be redirected, and in that way, your site will not be indexed in Google and you will have got an unbelevable big &#8220;trafic&#8221; to your site, because they will index sites that not exacts!</p>
<p>If you have questions, find my e-mail on my site (english, french, bulgarian):<br />
<a href="http://www.atanasov.co.cc/en/" rel="nofollow">http://www.atanasov.co.cc/en/</a><br />
<a href="http://www.atanasov.co.cc/fr/" rel="nofollow">http://www.atanasov.co.cc/fr/</a><br />
<a href="http://www.atanasov.co.cc/" rel="nofollow">http://www.atanasov.co.cc/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sahil</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-2618</link>
		<dc:creator>Sahil</dc:creator>
		<pubDate>Mon, 04 Apr 2011 16:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-2618</guid>
		<description>One more thing. If a country is disallowed / redirected, can a specific IP be allowed from that country?

I would really appreciate if someone could help me with the code I need to put at line 503 for this.

Thanks!</description>
		<content:encoded><![CDATA[<p>One more thing. If a country is disallowed / redirected, can a specific IP be allowed from that country?</p>
<p>I would really appreciate if someone could help me with the code I need to put at line 503 for this.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sahil</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-2617</link>
		<dc:creator>Sahil</dc:creator>
		<pubDate>Mon, 04 Apr 2011 16:09:53 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-2617</guid>
		<description>Can this script be shortened so as to block only 1 country. It is 25k in size, so this is why for 1 country it could be only a few kb.</description>
		<content:encoded><![CDATA[<p>Can this script be shortened so as to block only 1 country. It is 25k in size, so this is why for 1 country it could be only a few kb.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vnmilen</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-2532</link>
		<dc:creator>vnmilen</dc:creator>
		<pubDate>Sun, 13 Feb 2011 16:52:36 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-2532</guid>
		<description>Thank, It wokrs great!

&quot;Seb&quot;, look for the line #368
1) return $gi-&gt;GEOIP_COUNTRY_NAMES[$country_id];  //if you want the contry&#039;s name
2) return $gi-&gt;GEOIP_COUNTRY_CODES[$country_id];  //if you want the contry&#039;s code

If you have your script, just write:
include(&quot;country-redirect.php&quot;);
and the script will write the code or the name of the country, but if you want something else, just replace the line #503 (echo $country;) with something other.

If you have questions, find my e-mail on my site:
http://www.atanasov.co.cc/index.php</description>
		<content:encoded><![CDATA[<p>Thank, It wokrs great!</p>
<p>&#8220;Seb&#8221;, look for the line #368<br />
1) return $gi-&gt;GEOIP_COUNTRY_NAMES[$country_id];  //if you want the contry&#8217;s name<br />
2) return $gi-&gt;GEOIP_COUNTRY_CODES[$country_id];  //if you want the contry&#8217;s code</p>
<p>If you have your script, just write:<br />
include(&#8220;country-redirect.php&#8221;);<br />
and the script will write the code or the name of the country, but if you want something else, just replace the line #503 (echo $country;) with something other.</p>
<p>If you have questions, find my e-mail on my site:<br />
<a href="http://www.atanasov.co.cc/index.php" rel="nofollow">http://www.atanasov.co.cc/index.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neal</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-1768</link>
		<dc:creator>Neal</dc:creator>
		<pubDate>Fri, 26 Feb 2010 19:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-1768</guid>
		<description>it&#039;s not as good as 12script&#039;s Power Redirector, but free, thanks</description>
		<content:encoded><![CDATA[<p>it&#8217;s not as good as 12script&#8217;s Power Redirector, but free, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shock Marketer</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-1761</link>
		<dc:creator>Shock Marketer</dc:creator>
		<pubDate>Thu, 25 Feb 2010 16:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-1761</guid>
		<description>Go to line 503 of &quot;country-redirect.php&quot; and replace &quot;echo $country;&quot; with:
&lt;code&gt;if($country == &#039;UK&#039;)
{
header(&#039;Location: http://example.co.uk&#039;);
exit();
}
else if($country == &#039;US&#039;)
{
header(&#039;Location: http://example.com&#039;);
exit();
}&lt;/code&gt;

That should work - although I haven&#039;t used this script in quite a while.</description>
		<content:encoded><![CDATA[<p>Go to line 503 of &#8220;country-redirect.php&#8221; and replace &#8220;echo $country;&#8221; with:<br />
<code>if($country == 'UK')<br />
{<br />
header('Location: <a href="http://example.co.uk" rel="nofollow">http://example.co.uk</a>');<br />
exit();<br />
}<br />
else if($country == 'US')<br />
{<br />
header('Location: <a href="http://example.com" rel="nofollow">http://example.com</a>');<br />
exit();<br />
}</code></p>
<p>That should work &#8211; although I haven&#8217;t used this script in quite a while.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seb</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-1760</link>
		<dc:creator>Seb</dc:creator>
		<pubDate>Thu, 25 Feb 2010 15:46:05 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-1760</guid>
		<description>Hey Mike,

Thanks for your script. It&#039;s working like a charm!
I would like to redirect only UK and US visitors to different pages. The rest of them should continue with the current page.

What exactly should I add in the code?

Cheers,
Seb</description>
		<content:encoded><![CDATA[<p>Hey Mike,</p>
<p>Thanks for your script. It&#8217;s working like a charm!<br />
I would like to redirect only UK and US visitors to different pages. The rest of them should continue with the current page.</p>
<p>What exactly should I add in the code?</p>
<p>Cheers,<br />
Seb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-1669</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 16 Feb 2010 19:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-1669</guid>
		<description>@Sam: It is possible. Creating automatic subdomains would be quite difficult though.</description>
		<content:encoded><![CDATA[<p>@Sam: It is possible. Creating automatic subdomains would be quite difficult though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-1668</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:59:57 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-1668</guid>
		<description>@Dan: If you read under &quot;more information&quot; you would have noticed that I wrote that I hardly programmed any of this. It&#039;s a compilation of classes. If you&#039;d like to improve the code and documentation for this free script, go ahead. The other users would likely appreciate it.</description>
		<content:encoded><![CDATA[<p>@Dan: If you read under &#8220;more information&#8221; you would have noticed that I wrote that I hardly programmed any of this. It&#8217;s a compilation of classes. If you&#8217;d like to improve the code and documentation for this free script, go ahead. The other users would likely appreciate it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-1667</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-1667</guid>
		<description>I would just like to mention that although I give you kudos for effort, your code is very sloppy and no commenting or documentation.  Very poor implementation of your work sir.</description>
		<content:encoded><![CDATA[<p>I would just like to mention that although I give you kudos for effort, your code is very sloppy and no commenting or documentation.  Very poor implementation of your work sir.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

