<?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>FiddyP &#187; protection</title>
	<atom:link href="http://fiddyp.co.uk/tag/protection/feed/" rel="self" type="application/rss+xml" />
	<link>http://fiddyp.co.uk</link>
	<description>The personal blog of Andy Bailey</description>
	<lastBuildDate>Sun, 13 May 2012 15:28:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to stop spam blogs from hotlinking your images with htaccess</title>
		<link>http://fiddyp.co.uk/prevent-hotlinking-images-with-htaccess/</link>
		<comments>http://fiddyp.co.uk/prevent-hotlinking-images-with-htaccess/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 12:11:11 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Blog Tools]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[hotlinking]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[profit]]></category>
		<category><![CDATA[protection]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.fiddyp.co.uk/prevent-hotlinking-images-with-htaccess/</guid>
		<description><![CDATA[It&#8217;s a pain in the arse when someone copies your content, especially when they hotlink your images so your bandwidth gets used instead of their own so here&#8217;s [..]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffiddyp.co.uk%2Fprevent-hotlinking-images-with-htaccess%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Fprevent-hotlinking-images-with-htaccess%2F&amp;source=commentluv&amp;style=normal&amp;service=bit.ly&amp;service_api=R_259b4e5679e2c431cca1f989e158bba4&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>It&#8217;s a pain in the arse when someone copies your content, especially when they hotlink your images so your bandwidth gets used instead of their own so here&#8217;s a neat way of adding to your .htaccess file so you prevent particular blog networks from displaying images from your hosting by hotlinking them.<br />
Use this code:<br />
<code><br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?myspace\.com/ [NC,OR]<br />
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?blogspot\.com/ [NC,OR]<br />
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?livejournal\.com/ [NC]<br />
RewriteRule .*\.(jpe?g|jpg|gif|bmp|png)$ http://www.commentluv.com/images/antihotlink.jpg [L]<br />
&lt;/IfModule&gt;</code></p>
<p>Just open up your .htaccess file (found in the root of your web space) and add the above lines. That should prevent blogs from myspace,blogspot and livejournal from hotlinking your images. You can add the url of a blog you know is hotlinking your images by following the format of the other RewriteCond statements.</p>
<p>Change the image url for the RewriteRule to one you have hosted somewhere (not on the same hosting because that will get redirected in a loop every time it is linked to).</p>
<p>It works pretty well, look at this screen shot of a self confessed content copier&#8230;.<br />
<img src='http://fiddyp.co.uk/wp-content/uploads/2007/12/antihotlinkexample.jpg' alt='Content Thief owned' /></p>
<p>There a couple of my posts on that blog and they are littered with images telling the (probably non existent) readers to come and read the article here instead. Another reason to always have an image in my articles!</p>
<p>It&#8217;s a shame there isn&#8217;t a way to do that with content though! If you are having trouble with spam blogs scraping your content and images, you can read a fantastic article here on <a href="https://lorelle.wordpress.com/2006/04/10/what-do-you-do-when-someone-steals-your-content/">what to do when someone steals your content</a> by Lorelle who has a treasure trove of WordPress and blogging information. Well worth a look!</p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/prevent-hotlinking-images-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

