<?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: RBL Based IP to Location</title>
	<atom:link href="https://www.farhad.ca/2011/06/15/rbl-based-ip-to-location/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.farhad.ca/2011/06/15/rbl-based-ip-to-location/</link>
	<description>Professional Work Weblog</description>
	<lastBuildDate>Tue, 18 Jun 2013 02:43:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: prashant</title>
		<link>https://www.farhad.ca/2011/06/15/rbl-based-ip-to-location/#comment-18171</link>
		<dc:creator>prashant</dc:creator>
		<pubDate>Tue, 10 Apr 2012 20:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.farhad.ca/?p=46#comment-18171</guid>
		<description><![CDATA[Nice one :)]]></description>
		<content:encoded><![CDATA[<p>Nice one <img src='https://www.farhad.ca/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: weston deboer</title>
		<link>https://www.farhad.ca/2011/06/15/rbl-based-ip-to-location/#comment-18169</link>
		<dc:creator>weston deboer</dc:creator>
		<pubDate>Thu, 04 Aug 2011 23:38:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.farhad.ca/?p=46#comment-18169</guid>
		<description><![CDATA[Awesome! This saved me so much time and energy.
 complete code for php

&lt;code&gt;
$ip = $_SERVER[&#039;REMOTE_ADDR&#039;];
$ptr = implode(&quot;.&quot;,array_reverse(explode(&quot;.&quot;,$ip))).&quot;.rbloc.dayanadns.com&quot;;

$ip_address = gethostbyname($ptr);
list($d1,$d2,$d3,$d4) = explode(&#039;.&#039;,$ip_address);
$country_code = chr($d3).chr($d4);

print &quot;Result address: &quot;.$ip_address.&quot;\n&quot;;
print &quot;Country code: &quot;.$country_code.&quot;\n&quot;;
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Awesome! This saved me so much time and energy.<br />
 complete code for php</p>
<p><code><br />
$ip = $_SERVER['REMOTE_ADDR'];<br />
$ptr = implode(".",array_reverse(explode(".",$ip))).".rbloc.dayanadns.com";</p>
<p>$ip_address = gethostbyname($ptr);<br />
list($d1,$d2,$d3,$d4) = explode('.',$ip_address);<br />
$country_code = chr($d3).chr($d4);</p>
<p>print "Result address: ".$ip_address."\n";<br />
print "Country code: ".$country_code."\n";<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohammad eshghi nejad</title>
		<link>https://www.farhad.ca/2011/06/15/rbl-based-ip-to-location/#comment-18105</link>
		<dc:creator>mohammad eshghi nejad</dc:creator>
		<pubDate>Sun, 03 Jul 2011 14:10:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.farhad.ca/?p=46#comment-18105</guid>
		<description><![CDATA[Salam bar agha farhad
Kheily mokhlesim]]></description>
		<content:encoded><![CDATA[<p>Salam bar agha farhad<br />
Kheily mokhlesim</p>
]]></content:encoded>
	</item>
</channel>
</rss>
