Skip to content

Commit

Permalink
Blocked access to all dot files (#2349)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmollenhour authored Aug 3, 2022
1 parent 7f352b6 commit 18e68a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@

#RewriteBase /magento/

############################################
## Prevent serving "hidden" files like git repository

RewriteCond %{REQUEST_URI} /\.
RewriteRule ^(.*)$ / [R=404,L]

############################################
## uncomment next line to enable light API calls processing

Expand Down

0 comments on commit 18e68a2

Please sign in to comment.