[FIX] disallow .git folder access in htaccess
This commit is contained in:
parent
da5d32720d
commit
f670429f70
1 changed files with 12 additions and 0 deletions
12
.htaccess
Normal file
12
.htaccess
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue