1 2 3 4 5
# deny access to git repository folders <DirectoryMatch .*\.git/.*> Order allow,deny Deny From All </DirectoryMatch>