소스 검색

Deny access to config, content, content-sample, lib and vendor dirs

Send 404 Not Found instead of 403 Forbidden
Daniel Rudolf 9 년 전
부모
커밋
fbb744dd43
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      .htaccess

+ 1 - 0
.htaccess

@@ -5,6 +5,7 @@
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^(.*)$ index.php?$1 [L,QSA]
+    RewriteRule ^(config|content|content-sample|lib|vendor)/.* - [R=404,L]
 
     <IfModule mod_env.c>
         SetEnv PICO_URL_REWRITING 1