<?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>Webmaster Sucks &#187; hotlink</title>
	<atom:link href="http://www.webmastersucks.com/tags/hotlink/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmastersucks.com</link>
	<description>Here I share stuff I used to suck at as a novice webmaster..</description>
	<lastBuildDate>Mon, 13 Jun 2011 06:39:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Protect Image From Other Sites</title>
		<link>http://www.webmastersucks.com/protect-image-from-other-sites/</link>
		<comments>http://www.webmastersucks.com/protect-image-from-other-sites/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 21:10:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[hot link]]></category>
		<category><![CDATA[hotlink]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[image protection]]></category>
		<category><![CDATA[protect image]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=154</guid>
		<description><![CDATA[
			
				
			
		
Sometimes other sites use our images, but there is no link us. Only it is fill our bandwidth limit. We can ban that users or we can show another image for that sites. You can write that image &#8220;This images can download in www.domain.com&#8221;. You have to add this codes to .htaccess
Change domain with your [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fprotect-image-from-other-sites%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fprotect-image-from-other-sites%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Sometimes other sites use our images, but there is no link us. Only it is fill our bandwidth limit. We can ban that users or we can show another image for that sites. You can write that image &#8220;This images can download in www.domain.com&#8221;. You have to add this codes to <strong>.htaccess</strong></p>
<p>Change domain with your domain name and sucks.jpe is your image to show</p>
<pre class="brush: plain; title: ;">
&lt;IfModule mod_rewrite.c&gt;
 RewriteEngine on
 RewriteCond %{HTTP_REFERER} !^$
 RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain\.com/.*$ [NC]
 RewriteRule .*\.(gif|jpg)$ http://www.domain.com/sucks.jpe [R,NC,L]
&lt;/ifModule&gt;
</pre>
<p>If you want to serve a standard 403 forbidden error page</p>
<pre class="brush: plain; title: ;">RewriteRule .*\.(gif|jpg)$ - [F,L]</pre>
<p>If you want to add your friends sites to allow link</p>
<pre class="brush: plain; title: ;">RewriteCond %{HTTP_REFERER} !^http://(www\.)?myfriend\.com/.*$ [NC]</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/protect-image-from-other-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

