<?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: Rails remote IP address from behind a proxy</title>
	<atom:link href="http://bluescripts.net/2009/03/rails-remote-ip-address-from-behind-a-proxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://bluescripts.net/2009/03/rails-remote-ip-address-from-behind-a-proxy/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 08 Apr 2010 16:47:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Birm</title>
		<link>http://bluescripts.net/2009/03/rails-remote-ip-address-from-behind-a-proxy/comment-page-1/#comment-4103</link>
		<dc:creator>Birm</dc:creator>
		<pubDate>Tue, 18 Aug 2009 04:10:39 +0000</pubDate>
		<guid isPermaLink="false">http://bluescripts.net/2009/03/rails-remote-ip-address-from-behind-a-proxy/#comment-4103</guid>
		<description>This works perfectly for me on Slicehost.  One small change I made to make localhost a bit more friendly was:

request.env[&#039;HTTP_X_FORWARDED_FOR&#039;] &#124;&#124; request.remote_ip()

Otherwise, localhost returns null.</description>
		<content:encoded><![CDATA[<p>This works perfectly for me on Slicehost.  One small change I made to make localhost a bit more friendly was:</p>
<p>request.env['HTTP_X_FORWARDED_FOR'] || request.remote_ip()</p>
<p>Otherwise, localhost returns null.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
