summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-20 18:18:04 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-20 18:18:04 -0700
commite648ba58b387e2b167cda2b3c3272c833addd52d (patch)
tree5867877e62de1094363583087540f9e9fd13d5ee
parent3d321927b8ebb738b1cae90de32e0c3099193798 (diff)
Add a <FilesMatch> section to hide files that browsers shouldn't see.
-rw-r--r--.htaccess11
1 files changed, 11 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index 1d8bcb34..404b43f5 100644
--- a/.htaccess
+++ b/.htaccess
@@ -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