<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: How do I redirect images?</title>
	<link>http://ask.metafilter.com/29110/How-do-I-redirect-images/</link>
	<description>Comments on Ask MetaFilter post How do I redirect images?</description>
	<pubDate>Thu, 15 Dec 2005 11:26:09 -0800</pubDate>
	<lastBuildDate>Thu, 15 Dec 2005 11:26:09 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: How do I redirect images?</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images</link>	
		<description>How can I redirect images to stop bandwidth leeching? &lt;br /&gt;&lt;br /&gt; On my &lt;a href=&quot;http://www.thelookmachine.com&quot;&gt;band&apos;s website&lt;/a&gt;, we&apos;ve recently been the victim of a very large amount of bandwidth leeching. That is to say, we have been having a large number of people link to images that are stored on our server and use them on their page. We wanted to create a redirect image (nothing like tubgirl, just something tame), so that instead of stealing our imagery, they have a &quot;Official Look Machine Fan Club Member&quot; image that we&apos;ve created. (And then, they will quickly leech from someone else&apos;s server probably and leave ours alone). I know this is possible, but how do I do it? Also, we&apos;re on dreamhost and we host a number of sites on the same server, if that makes a difference. We only want to redirect images that are on different domains.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2005:site.29110</guid>
		<pubDate>Thu, 15 Dec 2005 11:23:18 -0800</pubDate>
		<dc:creator>jasonlatshaw</dc:creator>
		
			<category>Image</category>
		
			<category>redirects</category>
		
			<category>web</category>
		
			<category>developement</category>
		
	</item> <item>
		<title>By: sanko</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#458638</link>	
		<description>See &lt;a href=&quot;http://metatalk.metafilter.com/mefi/10798&quot;&gt;here&lt;/a&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-458638</guid>
		<pubDate>Thu, 15 Dec 2005 11:26:09 -0800</pubDate>
		<dc:creator>sanko</dc:creator>
	</item><item>
		<title>By: SweetJesus</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#458639</link>	
		<description>&lt;a href=&quot;http://www.webconfs.com/how-to-redirect-a-webpage.php&quot;&gt;Use 301 re-directs.&lt;/a&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-458639</guid>
		<pubDate>Thu, 15 Dec 2005 11:26:40 -0800</pubDate>
		<dc:creator>SweetJesus</dc:creator>
	</item><item>
		<title>By: jasonlatshaw</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#458644</link>	
		<description>I think in reference to the first one, I&apos;m not sure that&apos;s what I want to do. I don&apos;t want to just prevent others from using our images (although I guess that&apos;s a plan B), ideally, if possible, we want everyone who is stealing an image to instead display a particular image that we could upload to our site.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-458644</guid>
		<pubDate>Thu, 15 Dec 2005 11:31:39 -0800</pubDate>
		<dc:creator>jasonlatshaw</dc:creator>
	</item><item>
		<title>By: kcm</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#458647</link>	
		<description>I hate to do &lt;a href=&quot;http://googleityoumoron.com/&quot;&gt;this&lt;/a&gt;, but honestly, your best place to start is &lt;a href=&quot;http://www.google.com/search?q=bandwidth%20leech%20image&quot;&gt;Goooogle&lt;/a&gt; unless you have specific questions on this well-covered topic.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-458647</guid>
		<pubDate>Thu, 15 Dec 2005 11:35:14 -0800</pubDate>
		<dc:creator>kcm</dc:creator>
	</item><item>
		<title>By: Gator</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#458650</link>	
		<description>Put an .htaccess file in your images directory:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
RewriteEngine On&lt;br&gt;
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yoursite\.com [NC]&lt;br&gt;
RewriteCond %{HTTP_REFERER} !^$&lt;br&gt;
RewriteRule \.(jpeg|jpg|gif|bmp|png)$ /otherdirectory/hotlink.jpg [L]&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Where &quot;hotlink.jpg&quot; is your little &quot;Fan Club Member&quot; image.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-458650</guid>
		<pubDate>Thu, 15 Dec 2005 11:39:30 -0800</pubDate>
		<dc:creator>Gator</dc:creator>
	</item><item>
		<title>By: Taken Outtacontext</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#458666</link>	
		<description>Not the solution you&apos;re looking for but when that happened to me I didn&apos;t get mad, &lt;a href=&quot;http://outtacontext.com/life/archive/000303.shtml&quot;&gt;I got even&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-458666</guid>
		<pubDate>Thu, 15 Dec 2005 11:56:22 -0800</pubDate>
		<dc:creator>Taken Outtacontext</dc:creator>
	</item><item>
		<title>By: disillusioned</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#458807</link>	
		<description>Taken Outtacontext: &lt;a href=&quot;http://www.uttersarcasm.com/2005/11/17/dawn-ying-hotlinks-to-me/&quot;&gt;So did I.&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
I love that someone would actually hotlink an MP3. Classy, that.&lt;br&gt;
&lt;br&gt;
Images are somewhat expected. Especially with this whole MySpace generation: Everyone&apos;s little home on the web lacks sufficient storage, and why would some 14 year old bother copying an image to his own server/server space when he can just tweak IMG SRC. &lt;br&gt;
&lt;br&gt;
The reality here is that I highly doubt most people understand what&apos;s happening. A lot of people learned simply by example. They saw some friend had an image, discovered you could &quot;View Source&quot; and figured out how th tweak IMG SRC tags appropriately. It doesn&apos;t mean that they understand what&apos;s happening underneath, or why someone might get upset.&lt;br&gt;
&lt;br&gt;
Fortunately, we have recourse from such things, as Gator, et al describe above.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-458807</guid>
		<pubDate>Thu, 15 Dec 2005 12:59:56 -0800</pubDate>
		<dc:creator>disillusioned</dc:creator>
	</item><item>
		<title>By: twiggy</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#458833</link>	
		<description>Myspace caused this problem for me.  We do CD reviews and so we come up first in a lot of google images searches and myspace links the living hell out of us.&lt;br&gt;
&lt;br&gt;
I created an alternative image that comes up using the .htaccess technique posted above:&lt;br&gt;
&lt;br&gt;
&lt;img border=&quot;0&quot; src=&quot;http://www.openingbands.com/images/blank.gif&quot;&gt;&lt;br&gt;
&lt;br&gt;
Here&apos;s what they get. :-)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-458833</guid>
		<pubDate>Thu, 15 Dec 2005 13:15:15 -0800</pubDate>
		<dc:creator>twiggy</dc:creator>
	</item><item>
		<title>By: filmgeek</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#458874</link>	
		<description>For what it&apos;s worth, teaching them a lesson can be a good thing; just because 14 yo do it..doesn&apos;t mean it&apos;s okay.&lt;br&gt;
&lt;br&gt;
For that reason I link to the &lt;a href=&quot;http://fixedreference.org/en/20040424/wikipedia/Shock_site&quot;&gt;history of linking to a shock site&lt;/a&gt;.  The link it totally safe - it just links to a wikipedia article about shock sites.&lt;br&gt;
&lt;br&gt;
Search for Something (as in Something Awful) - and read (&lt;b&gt;do not click on any image link&lt;/b&gt; to see what they did.  Essentially they made it so anyone who leeches bandwidth...to get a horrible, horrible picture (rather than the happy unicorns they linked to)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-458874</guid>
		<pubDate>Thu, 15 Dec 2005 13:56:12 -0800</pubDate>
		<dc:creator>filmgeek</dc:creator>
	</item><item>
		<title>By: jasonlatshaw</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#458885</link>	
		<description>I really wouldn&apos;t post a question without googling. The solutions I found through googling weren&apos;t working quite right, mostly because of sharing domains on the same server (technically, they are virtual domains).&lt;br&gt;
&lt;br&gt;
I&apos;ll try these solutions, thanks everyone!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-458885</guid>
		<pubDate>Thu, 15 Dec 2005 14:09:09 -0800</pubDate>
		<dc:creator>jasonlatshaw</dc:creator>
	</item><item>
		<title>By: Hildago</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#458954</link>	
		<description>Some livejournal asshole was hotlinking to a large drawing of mine, using it as the background for his site (tiled too.. it was awful).  So, I replaced the file he was hotlinking with a 1x1 pixel that was the same color as his text, so that the entire page was pretty much unreadable until he changed it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-458954</guid>
		<pubDate>Thu, 15 Dec 2005 15:41:20 -0800</pubDate>
		<dc:creator>Hildago</dc:creator>
	</item><item>
		<title>By: Mitheral</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#458966</link>	
		<description>Gator what would the code look like if I wanted to allow vistors of a few sites (say metafilter, ebay.ca, and www.woodworking.org) to see images hosted on my server but not anywhere else?  And does that code have to be in the same directory as my images or just somewhere along the path.  IE: could I put that code at the root of my image folder and have images in sub folders protected from leaching?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-458966</guid>
		<pubDate>Thu, 15 Dec 2005 15:53:34 -0800</pubDate>
		<dc:creator>Mitheral</dc:creator>
	</item><item>
		<title>By: jasonlatshaw</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#459032</link>	
		<description>Hey all --&lt;br&gt;
&lt;br&gt;
Thanks loads everyone, we got it up and running and it&apos;s perfect.&lt;br&gt;
&lt;br&gt;
Check out, for example. . . &lt;a href=&quot;http://puppyblog.blogspot.com/&quot;&gt;this&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
I love it, now there are literally thousands of people on the web professing their look machine fan club membership. . .  hilarious.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-459032</guid>
		<pubDate>Thu, 15 Dec 2005 17:25:21 -0800</pubDate>
		<dc:creator>jasonlatshaw</dc:creator>
	</item><item>
		<title>By: oaf</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#459045</link>	
		<description>My preferred replacement image is a PNG that is one pixel wide...and 16383 pixels tall.  It&apos;s hell on layouts.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-459045</guid>
		<pubDate>Thu, 15 Dec 2005 17:39:21 -0800</pubDate>
		<dc:creator>oaf</dc:creator>
	</item><item>
		<title>By: Mitheral</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#459061</link>	
		<description>The last image on jasonlatshaw leacher&apos;s page is hilarious in context, it&apos;s got a big ol&apos; copyright symbol all over it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-459061</guid>
		<pubDate>Thu, 15 Dec 2005 18:04:41 -0800</pubDate>
		<dc:creator>Mitheral</dc:creator>
	</item><item>
		<title>By: Gator</title>
		<link>http://ask.metafilter.com/29110/How-do-I-redirect-images#459087</link>	
		<description>Mitheral, to allow certain sites to hotlink your images, just add extra lines to the .htaccess file specifying those sites:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
RewriteEngine On&lt;br&gt;
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yoursite\.com [NC]&lt;br&gt;
&lt;b&gt;RewriteCond %{HTTP_REFERER} !^http://(www\.)?metafilter\.com [NC]&lt;br&gt;
RewriteCond %{HTTP_REFERER} !^http://(www\.)?ebay\.ca [NC]&lt;/b&gt;&lt;br&gt;
RewriteCond %{HTTP_REFERER} !^$&lt;br&gt;
RewriteRule \.(jpeg|jpg|gif|bmp|png)$ /otherdirectory/hotlink.jpg [L]&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
The .htaccess file has to be in the same directory where your images are stored; however, it&apos;s very important that your replacement image (&quot;hotlink.jpg&quot;) has to be in a &lt;i&gt;different directory&lt;/i&gt; (&quot;otherdirectory&quot; in my example), outside your images folder -- NOT a subdirectory of your images folder.  Yes, if you put this .htaccess file in your images folder, it&apos;ll protect images in any subdirectories of that folder.&lt;br&gt;
&lt;br&gt;
There are other ways to do all this, of course.  Googling for &lt;code&gt;htaccess hotlink image replace&lt;/code&gt; or similar terms will bring up all sorts of resources.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29110-459087</guid>
		<pubDate>Thu, 15 Dec 2005 18:47:58 -0800</pubDate>
		<dc:creator>Gator</dc:creator>
	</item>
	</channel>
</rss>
