Last active
August 29, 2015 14:23
-
-
Save mgng/8017cf34157aa896eed8 to your computer and use it in GitHub Desktop.
ファイル単位でのアクセス拒否
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# test.php をアクセス拒否する場合 | |
<Files "test.php"> | |
Order allow,deny | |
Deny from all | |
</Files> | |
# 先頭が _ や . で始まるファイルをアクセス拒否する場合は「Files ~ "正規表現"」で記述 | |
<Files ~ "^(_|\.)"> | |
Order allow,deny | |
Deny from all | |
</Files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment