소스 검색

Deny composer.json and composer.lock in .htaccess

Gabriel Badano 4 년 전
부모
커밋
9863338371
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      .htaccess

+ 4 - 0
.htaccess

@@ -1,3 +1,7 @@
+<FilesMatch ^(composer\.(json|lock))$>
+    Deny from all
+</FilesMatch>
+
 RewriteEngine on
 
 #RewriteCond %{HTTPS} !^on$