2024-11-19 07:02:04 +00:00
|
|
|
# Deny access to .git directory
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteRule ^(.*/)?\.git/ - [F,L]
|
2024-11-23 20:01:37 +00:00
|
|
|
RewriteRule ^(.*/)?\composer\.(.*) - [F,L]
|
2024-11-19 07:02:04 +00:00
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
# Alternatively, you can use the following directive to deny access
|
|
|
|
<FilesMatch "\.git/">
|
|
|
|
Order allow,deny
|
|
|
|
Deny from all
|
|
|
|
</FilesMatch>
|
|
|
|
|