lifetype-1.2.12 vanilla
[lifetype/.git] / gallery / .htaccess
1 # case insensitive file matching.  See conversations on the svn list circa 2008-03-29
2 # regarding this setting.  It is basically impossible to get this string perfect,
3 # and so there is an inherent security risk of allowing untrusted users to upload
4 # files
5 <Files ~ "/\.(php|php3|php4|php5|php6|pht|php3p|phtml|htm|html|pl|py|pyc|pyo|rb|cgi)$/i">
6  Order allow,deny
7  Deny from all
8 </Files>
9
10 # to be more secure, you can deny access to all files
11 # and then only allow access to specific extensions
12 #<Files "*">
13 # Order allow,deny
14 # Deny from all
15 #</Files>
16 #
17 #<Files ~ "/\.(gif|jpg|mp3|mov|png|bmp|pdf)$/i">
18 #  Allow from all
19 #</Files>
20
21 <IfModule mod_expires.c>
22   ExpiresActive On
23   ExpiresDefault "access plus 1 week"
24 </IfModule>