Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/img/members/.htaccess
blob: 2c530b36d21a36acc2a3efd448fffdbefcb150e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# ----------------------------------------------------------------------
# If something is broken, then see the apache config for your site,
# the AllowOverride directive https://httpd.apache.org/docs/2.4/mod/core.html#allowoverride
# ----------------------------------------------------------------------

# ----------------------------------------------------------------------
# Disable directory listing.
#-----------------------------------------------------------------------

<IfModule mod_autoindex.c>
    Options -Indexes
</IfModule>

# ----------------------------------------------------------------------
# Disable CGI script execution.
#-----------------------------------------------------------------------

<IfModule mod_cgi.c>
    Options -ExecCGI
</IfModule>
<IfModule mod_cgid.c>
    Options -ExecCGI
</IfModule>
<IfModule mod_fcgid.c>
    Options -ExecCGI
</IfModule>

# ----------------------------------------------------------------------
# Disable PHP script execution if php as apache module.
# If your php has a module name other than "mod_php", "mod_php_null",
# "mod_php5" and "mod_php7", then add here one more condition with your name.
#-----------------------------------------------------------------------

<IfModule mod_php.c>
    php_flag engine 0
</IfModule>
<IfModule mod_php_null.c>
    php_flag engine 0
</IfModule>
<IfModule mod_php5.c>
    php_flag engine 0
</IfModule>
<IfModule mod_php7.c>
    php_flag engine 0
</IfModule>

# ----------------------------------------------------------------------
# Treat these files as plain text.
# ----------------------------------------------------------------------

<IfModule mod_mime.c>
    RemoveHandler .asmx .asp .aspx .cgi .dll .exe .fcgi .fpl .htm .html .js .jsp .php .php3 .php4 .php5 .php6 .php7 .phar .phps .phtm .phtml .pl .py .rb .shtm .shtml .wml .xml
    AddType text/plain .asmx .asp .aspx .cgi .dll .exe .fcgi .fpl .htm .html .js .jsp .php .php3 .php4 .php5 .php6 .php7 .phar .phps .phtm .phtml .pl .py .rb .shtm .shtml .wml .xml
</IfModule>

# ----------------------------------------------------------------------
# All files are given through the default handler for static content (Disable script execution).
# ----------------------------------------------------------------------

SetHandler default-handler

# ----------------------------------------------------------------------
# Show nofile.gif instead of missing files.
# ----------------------------------------------------------------------

<IfModule mod_rewrite.c>
    RewriteEngine On
#   Uncomment and properly set the RewriteBase if the rewrite rules are not working properly
#   RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* nofile.gif [L]
</IfModule>