[FIX] disallow .git folder access in htaccess

This commit is contained in:
Jannik Beyerstedt 2020-07-02 23:41:22 +02:00
parent 217b454f44
commit 303aef1be0
1 changed files with 12 additions and 0 deletions

12
.htaccess Normal file
View File

@ -0,0 +1,12 @@
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
# block git repo
RewriteRule ^.git/(.*) error [R=301,L]
RewriteRule ^.gitattributes error [R=301,L]
RewriteRule ^.gitignore error [R=301,L]
RewriteRule ^.gitmodules error [R=301,L]
</IfModule>