diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-06-20 18:18:04 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-20 18:18:04 -0700 |
commit | e648ba58b387e2b167cda2b3c3272c833addd52d (patch) | |
tree | 5867877e62de1094363583087540f9e9fd13d5ee | |
parent | 3d321927b8ebb738b1cae90de32e0c3099193798 (diff) |
Add a <FilesMatch> section to hide files that browsers shouldn't see.
-rw-r--r-- | .htaccess | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -17,6 +17,17 @@ SecFilterScanPOST Off </IfModule> +# Increase security by uncommenting this block. It keeps browsers +# from seeing support files that they shouldn't have access to. We +# comment this out because Apache2 requires some minor configuration +# in order for you to use it. You must specify "AllowOverride Limit" +# in your Apache2 config file before you uncomment this block or +# you'll get an "Internal Server Error". +# +# <FilesMatch "(\.(class|fla|inc|sql|txt|gitignore)|(README|LICENSE))$"> +# Order allow,deny +# </FilesMatch> + # Improve performance by uncommenting this block. It tells the # browser that your images don't change very often so it won't keep # asking for them. If you get an error after uncommenting this, make |