[FIX] disallow .git folder access in htaccess

This commit is contained in:
Jannik Beyerstedt 2020-07-02 23:48:45 +02:00
parent da5d32720d
commit f670429f70

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>