commit
This commit is contained in:
24
kngil/.htaccess
Normal file
24
kngil/.htaccess
Normal file
@@ -0,0 +1,24 @@
|
||||
# --------------------------------------------------
|
||||
# 기본 보안 설정
|
||||
# --------------------------------------------------
|
||||
|
||||
# 디렉토리 목록 노출 방지
|
||||
Options -Indexes
|
||||
|
||||
# 기본 인덱스 파일 고정
|
||||
DirectoryIndex index.php
|
||||
|
||||
# 서버 정보 노출 방지
|
||||
ServerSignature Off
|
||||
|
||||
# --------------------------------------------------
|
||||
# 민감 파일 직접 접근 차단
|
||||
# --------------------------------------------------
|
||||
<FilesMatch "\.(env|ini|log|sql|bak|sh|inc)$">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
|
||||
# --------------------------------------------------
|
||||
# PHP 설정 (가능한 경우)
|
||||
# --------------------------------------------------
|
||||
php_flag display_errors Off
|
||||
Reference in New Issue
Block a user