<?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>Jon Knapp &#187; Subversion</title>
	<atom:link href="http://jonknapp.com/tag/subversion/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonknapp.com</link>
	<description>byte artist</description>
	<lastBuildDate>Sat, 20 Aug 2011 07:48:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Starting a Web Project with .htaccess</title>
		<link>http://jonknapp.com/2009/10/starting-a-web-project-with-htaccess/</link>
		<comments>http://jonknapp.com/2009/10/starting-a-web-project-with-htaccess/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 16:54:25 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://jonknapp.com/?p=4</guid>
		<description><![CDATA[A few weeks ago I was pointed to an interesting article by Smashing Magazine (@smashingmag) about how leaving &#8220;.svn&#8221; folders on your web projects is a HUGE security risk!  I have been using Subversion for source control for awhile now, but I never knew the impact of leaving &#8220;.svn&#8221; folders littered around a checked out [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago I was pointed to an <a title="SVN Server Admin Issue: Fix It!" href="http://www.smashingmagazine.com/2009/09/25/svn-strikes-back-a-serious-vulnerability-found/">interesting article</a> by Smashing Magazine (<a title="Smashing Magazine on Twitter" href="http://twitter.com/smashingmag">@smashingmag</a>) about how leaving &#8220;.svn&#8221; folders on your web projects is a HUGE security risk!  I have been using Subversion for source control for awhile now, but I never knew the impact of leaving &#8220;.svn&#8221; folders littered around a checked out project.</p>
<p>Normally when a project is checked out of Subversion, there is no problem at all.  However if you decide to use Subversion to deploy your projects, like I do for the <a title="L-Train, Expand's LMS" href="http://www.getexpanded.com/l-train-learning-management/">L-Train</a>, then you need to either do an export (instead of checkout), or you need to make sure that anything inside a &#8220;.svn&#8221; folder is inaccessible to the web. I chose the later, since I like to be able to run svn commands against my checked out projects to see what files another co-worker has littered my projects with.</p>
<p>Here is my base .htaccess file that I use to block all traffic to &#8220;.svn&#8221; folders.  It also disallows listing a folder&#8217;s directory if they do not have a default file to display.</p>
<p>[sourcecode language="sh"]<br />
# disallow access to directory indexes<br />
Options -Indexes</p>
<p>RewriteEngine On<br />
# prevent all access to files inside subversion folders<br />
RewriteRule ^(.*/)?.svn/ &#8211; [F,L]<br />
ErrorDocument 403 &#8220;Access Forbidden&#8221;<br />
[/sourcecode]</p>
<p>FYI &#8211; .htaccess files only work on Linux servers but I have no idea why you would use anything else.  <img src='http://jonknapp.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jonknapp.com/2009/10/starting-a-web-project-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

