News for hackers. Stuff that matters.
Re:Using SVN makes your site extremely vulnerable by ionfish on Wednesday September 23, 2009 @06:54AM (#839017)
For your Apache config.

  # Disallow viewing of .svn and .git directory contents
  <DirectoryMatch \.(svn|git)>
    Order allow,deny
    Deny from all
  </DirectoryMatch>
Re:Using SVN makes your site extremely vulnerable by bcl on Wednesday September 23, 2009 @12:02PM (#839506)
May as well throw in .hg

Oh. Now we're blacklisting.

If you are going to use this solution, you are better off blacklisting all dotfiles except .htaccess, assuming you allow it.

Re:Using SVN makes your site extremely vulnerable by ionfish on Wednesday September 23, 2009 @12:13PM (#839528)
Even if you do use .htaccess files, you still shouldn't be showing them to anyone who requests them from your web server!
Re:Using SVN makes your site extremely vulnerable by bcl on Wednesday September 23, 2009 @04:42PM (#840080)
Ha! Correct!
Re:Using SVN makes your site extremely vulnerable by patio11 on Wednesday September 23, 2009 @10:34AM (#839301)
For Nginx:

location ~ /\.(svn|git) { deny all; }

Re:Using SVN makes your site extremely vulnerable by djdarkbeat on Wednesday October 28, 2009 @02:47PM (#908473)

  # Disallow viewing of .svn and .git and .hg directory contents
  <Directory ~ \.(svn|git|hg)>
    Order allow,deny
    Deny from all
  </Directory>
Re:Using SVN makes your site extremely vulnerable by djdarkbeat on Wednesday October 28, 2009 @01:47PM (#908338)
As well as leaving .gitignore exposed also.