Skip to content

Commit

Permalink
동작 외 필요하지 않은 파일에 대한 접근 제한 및 files 디렉토리 접근 제한 rewrite 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
bnu committed Apr 14, 2017
1 parent 20b897f commit be3578d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
RewriteEngine On

RewriteRule ^(.*/)?\.(.+)$ - [L,F]
RewriteRule ^codeception(.*?).yml$ - [L,F]
RewriteRule ^composer(.*?).(json|lock)$ - [L,F]
RewriteRule ^files/.+\.php$ - [L,F]

This comment has been minimized.

Copy link
@Lastorder-DC

Lastorder-DC Apr 14, 2017

/files/cache/document_category/ 폴더 안 php 파일들은 게시판 분류 관리 페이지에서 직접 불러와지므로 차단되어서는 안됩니다.

RewriteRule ^files/(attach|config|cache/store)/.+\.php$ - [L,F]
RewriteRule ^files/(env|member_extra_info/(new_message_flags|point))/ - [L,F]

# reserve XE Layout Template Source File (*.html)
RewriteRule ^(layouts|m.layouts|files/faceOff)/(.+)\.html$ - [L,F]
# reserve XE Template Source Files (*.html)
Expand Down

0 comments on commit be3578d

Please sign in to comment.