Adding security to your SVN directory using .htaccess
Posted: May 25th, 2009 | Author: admin | Filed under: Server Related Stuff |If you are familiar with SVN, your directory tree of your project or website would be populated by .svn folders. These folders are a security vulnerability since this is where you keep your file revisions and other information regarding the structure and layout of your website. Here’s a simple solution made by Adam Gotterer that protect and secure those directories by using .htaccess:
RewriteRule (\.svn)/(.*?) - [F,L]
Another good tip is to use SVN export instead of a checkout or rsync.
Leave a Reply