<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>benwatts.ca &#187; redirect</title>
	<atom:link href="http://www.benwatts.ca/tag/redirect/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benwatts.ca</link>
	<description>The crazy ramblings of designer/web developer Ben Watts.</description>
	<lastBuildDate>Sun, 05 Sep 2010 01:49:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Redirecting Based Upon Referer</title>
		<link>http://www.benwatts.ca/2008/04/10/redirecting-based-upon-referer/</link>
		<comments>http://www.benwatts.ca/2008/04/10/redirecting-based-upon-referer/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 00:44:14 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://www.rainiscold.ca/seaturtle/?p=5</guid>
		<description><![CDATA[I didn&#8217;t want to get hits from facebook for a URL that I noticed someone posted on facebook. Added this to the index file, works like a charm: if( strpos($_SERVER['HTTP_REFERER'], 'facebook.com') > 0 ){ header('Referer: http://www.facebook.com'); header('Location: http://www.facebook.com'); }]]></description>
			<content:encoded><![CDATA[<p>I didn&#8217;t want to get hits from facebook for a URL that I noticed someone posted on facebook. Added this to the index file, works like a charm:</p>
<pre lang="php">
if( strpos($_SERVER['HTTP_REFERER'], 'facebook.com') > 0 ){
	header('Referer: http://www.facebook.com');
	header('Location: http://www.facebook.com');
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.benwatts.ca/2008/04/10/redirecting-based-upon-referer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
