Protect your .svn files in your website

If you are using like me svn to manage your website, you certainly notified that all the .svn files are fully readable by everyone in plain text. So here is a fix to deny the acces to those files :

<Directory ~ "\.svn">
    Order allow,deny
    Deny from all
</Directory>

Solution found at http://alexking.org/blog/2005/04/12/svn-as-a-web-site-maintenence-tool

Haut de page