Re: .svn on the web? Risk
From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-02-01 22:29:13 CET
On Feb 1, 2006, at 19:46, Jonathan Powell wrote:
> I was wondering if there was a risk to having the .svn folders on your
Unless you tell it not to, Apache and most other web servers will
It's quite easy though. You can just drop this in your httpd.conf:
<Files ".svn">
This will give the visitor a "403 Forbidden" message if they try to
I think I much prefer this sneakier one-liner though:
RedirectMatch 404 /\.svn(/|$)
It gives a "404 Not Found" message, so nobody will have any idea
[1] Actually I just tried this and it seems that while Lighty 1.4.9
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.