<?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>What I Think &#187; hot linking</title>
	<atom:link href="http://www.paulmc.org/whatithink/tag/hot-linking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paulmc.org/whatithink</link>
	<description>Yes. I&#039;m back.</description>
	<lastBuildDate>Sat, 24 Jul 2010 20:23:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using .htaccess to Prevent Hot Linking</title>
		<link>http://www.paulmc.org/whatithink/2008/01/25/using-htaccess-to-prevent-hot-linking/</link>
		<comments>http://www.paulmc.org/whatithink/2008/01/25/using-htaccess-to-prevent-hot-linking/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 14:43:32 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[hot linking]]></category>

		<guid isPermaLink="false">http://www.paulmc.org/whatithink/2008/01/25/using-htaccess-to-prevent-hot-linking/</guid>
		<description><![CDATA[
Hot linking is when another website embeds an image from your website in theirs by directly linking to the image. It&#8217;s considered bad form, as every time the image is requested by a browser it&#8217;s your bandwidth being used, and bandwidth costs money.


The good news is that you can prevent hot linking by adding the [...]]]></description>
			<content:encoded><![CDATA[<p>
Hot linking is when another website embeds an image from your website in theirs by directly linking to the image. It&#8217;s considered bad form, as every time the image is requested by a browser it&#8217;s your bandwidth being used, and bandwidth costs money.
</p>
<p>
The good news is that you can prevent hot linking by adding the following lines to your .htaccess file:
</p>
<p>
<code>&lt;IfModule rewrite.c&gt;</code><br />
<code>RewriteEngine On</code><br />
<code>RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]</code><br />
<code>RewriteCond %{HTTP_REFERER} !^$</code><br />
<code>RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L]</code><br />
<code>&lt;/IfModule&gt;</code>
</p>
<p>
Thanks to <a href="http://altlab.com/htaccess_tutorial.html">altlab</a> for the .htaccess rewrite rules.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.paulmc.org/whatithink/2008/01/25/using-htaccess-to-prevent-hot-linking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
