Scroll To Top

Disallowing your SVN directories on your Apache webserver is easy.

moved to the archive as I don't use svn anymore.

Depending on how much access you have to your server there are two different options, a httpd.conf option and a .htaccess optoin. The global httpd is prefered as you will only need to do it once for all your sites.

Global httpd.conf file

# Disallow browsing of Subversion dirs

Order allow,deny
Deny from all

htaccess file

RedirectMatch 404 /\\.svn(/|$)