Protect SVN paths/directories in .htaccess


/ Published in: Apache
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <IfModule mod_rewrite.c>
  2. RewriteRule ^(.*/)?\.svn/ - [F,L]
  3. ErrorDocument 403 "Access Forbidden"
  4. </IfModule>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.