<?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"
	>

<channel>
	<title>TechTips &#187; Apache</title>
	<atom:link href="http://www.buzolich.com/techtips/category/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.buzolich.com/techtips</link>
	<description>If technology scares you, close your browser and slowly back away</description>
	<pubDate>Fri, 11 Apr 2008 20:17:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Stop Bandwidth Theft with .htaccess</title>
		<link>http://www.buzolich.com/techtips/stop-bandwidth-theft-with-htaccess</link>
		<comments>http://www.buzolich.com/techtips/stop-bandwidth-theft-with-htaccess#comments</comments>
		<pubDate>Sun, 20 Mar 2005 17:43:11 +0000</pubDate>
		<dc:creator>buzolich</dc:creator>
		
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.buzolich.com/techtips/2005/stop-bandwidth-theft-with-htaccess/</guid>
		<description><![CDATA[.htaccess files are a very powerful tool of the Apache web server, but complicated to get working. They are used on this site to rewrite the urls into reader friendly names instead of the php=5&#038;&#8230;.that lies underneath.  They also control access to your files.  In this case I&#8217;m using the .htaccess file to [...]]]></description>
			<content:encoded><![CDATA[<p><img src='/techtips/media/apacheFeather.gif' alt='Light as a feather, stronger and faster than IIS' align="right"/>.htaccess files are a very powerful tool of the Apache web server, but complicated to get working. They are used on this site to rewrite the urls into reader friendly names instead of the php=5&#038;&#8230;.that lies underneath.  They also control access to your files.  In this case I&#8217;m using the .htaccess file to stop people from linking to my images, movies, audio, and flash to use on their site.  This doesn&#8217;t stop people from linking to my pages, which I&#8217;d like them to do early and often.</p>
<p>A lovely thing about .htaccess files: if you place them in a directory, the conditions and permissions you set up affect all subfolders of that folder. So, if you want to protect all your images, just drop a single .htaccess file in your main images directory, and all subfolders are taken care of.</p>
<p>Here&#8217;s the code that I&#8217;m using for my .htaccess file:<br />
<code><br />
RewriteEngine On<br />
RewriteCond %{HTTP_REFERER} !^http://www.buzolich.com [NC]<br />
RewriteCond %{HTTP_REFERER} !^http://buzolich.com [NC]<br />
RewriteRule [^/]+.(jpe?g|gif|png|mov|swf|avi|mpe?g|mp3|wav|wmv)$ - [F]<br />
</code></p>
<p>Note: The file is four lines, and each line starts with Rewrite&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.buzolich.com/techtips/stop-bandwidth-theft-with-htaccess/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
