Skip to content

Commit a05b7bf

Browse files
committed
Block access to some files and paths in .htaccess
all .ini fileas all hidden files (starting from dot) files from /cli and /tests paths
1 parent eded138 commit a05b7bf

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

magmi/.htaccess

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<FilesMatch "\.(ini)$">
2+
Order allow,deny
3+
Deny from all
4+
</FilesMatch>
5+
6+
<FilesMatch "^\.">
7+
Order allow,deny
8+
Deny from all
9+
</FilesMatch>
10+
11+
<FilesMatch "ReleaseNotes.txt">
12+
Order allow,deny
13+
Deny from all
14+
</FilesMatch>

magmi/cli/.htaccess

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deny from all

magmi/tests/.htaccess

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deny from all

0 commit comments

Comments
 (0)