Skip to content

Commit

Permalink
Dev Disallow download of composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieB2B committed Jul 13, 2021
1 parent ef773af commit 8f3de60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .htaccess
Expand Up @@ -11,6 +11,9 @@
# deny access to hidden files and directories except .well-known
RewriteCond %{REQUEST_URI} !^/\.well-known
RewriteRule ^(.*/)?\.+ - [F]

# deny access to composer.json that is used for remote fingerprinting
RewriteRule ^composer.json - [F]
</IfModule>

# deny access to hidden files and directories without mod_rewrite
Expand Down

0 comments on commit 8f3de60

Please sign in to comment.