Skip to content

Instantly share code, notes, and snippets.

@mgng
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgng/8017cf34157aa896eed8 to your computer and use it in GitHub Desktop.
Save mgng/8017cf34157aa896eed8 to your computer and use it in GitHub Desktop.
ファイル単位でのアクセス拒否
# 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